/* ==========================================
   GEARHEAD GALLERY - FUTURISTIC CYBERPUNK THEME
   ========================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: #0a0e1a;
    background-image: 
        linear-gradient(135deg, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.05), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.05), transparent 40%);
    color: #e0e6ed;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   GLOWING EFFECTS & ANIMATIONS
   ========================================== */

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    }
}

@keyframes border-glow {
    0%, 100% {
        border-color: rgba(0, 255, 255, 0.5);
    }
    50% {
        border-color: rgba(0, 255, 255, 0.8);
    }
}

.glow-accent {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
    margin-bottom: 4rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 180px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
    letter-spacing: 2px;
}

nav .logo img,
.logo img,
a.logo img {
    height: 170px !important;
    width: auto !important;
    max-height: 170px !important;
    max-width: 400px !important;
    min-height: 170px !important;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6)) !important;
    transition: all 0.3s ease;
    transform: scale(1) !important;
    object-fit: contain !important;
}

.logo:hover img {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.9));
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px #00ffff;
}

nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.5);
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================
   GAME DASHBOARD SPECIFIC STYLES
   ========================================== */

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 25, 40, 0.8);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #00ffff;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #0088ff, #00ffff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::before {
    opacity: 0.3;
}

.header h1 {
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
    letter-spacing: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: #00ffff;
    font-weight: bold;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    animation: glow-pulse 2s ease-in-out infinite;
}

.logout-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 50, 80, 0.2);
    color: #ff5080;
    border: 2px solid #ff5080;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 50, 80, 0.4);
    box-shadow: 0 0 20px rgba(255, 80, 128, 0.5);
    transform: translateY(-2px);
}

.status-banner {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.1) 0%, rgba(0, 200, 255, 0.1) 100%);
    border: 2px solid #00ffc8;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
    backdrop-filter: blur(10px);
}

.status-banner h3 {
    color: #00ffc8;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.6);
}

.status-banner p {
    color: #b8e6f0;
    font-size: 1rem;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    border: 2px solid #00b4ff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.2);
    backdrop-filter: blur(10px);
}

.welcome-card h2 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.welcome-card p {
    color: #b8d4f0;
    font-size: 1.1rem;
}

/* ==========================================
   ACTION CARDS (CYBERPUNK CARD STYLE)
   ========================================== */

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: rgba(15, 25, 40, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00ffff;
    box-shadow: 
        0 10px 40px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    background: rgba(15, 25, 40, 0.8);
}

.action-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #0088ff, #00ffff, #0088ff);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.action-card:hover::after {
    opacity: 0.5;
}

.action-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.action-title {
    color: #00ffff;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.action-desc {
    color: #a8c5d8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 150, 255, 0.2) 100%);
    color: #00ffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #00ffff;
    cursor: pointer;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(0, 150, 255, 0.3) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(100, 100, 255, 0.2) 100%);
    border-color: #0088ff;
    color: #0088ff;
}

.btn-secondary:hover {
    box-shadow: 0 5px 25px rgba(0, 136, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3) 0%, rgba(100, 100, 255, 0.3) 100%);
}

/* ==========================================
   CARDS & GRID LAYOUTS
   ========================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(15, 25, 40, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card p {
    color: #b8d4f0;
    line-height: 1.6;
}

/* ==========================================
   FORMS
   ========================================== */

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(15, 25, 40, 0.8);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 20, 40, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #e0e6ed;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 30, 50, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================
   GALLERY & IMAGE DISPLAYS
   ========================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #00ffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   TABLES
   ========================================== */

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 25, 40, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

thead {
    background: rgba(0, 255, 255, 0.1);
}

th {
    padding: 1rem;
    text-align: left;
    color: #00ffff;
    font-weight: bold;
    border-bottom: 2px solid #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    color: #b8d4f0;
}

tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #00ffff;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 255, 255, 0.2);
}

footer p {
    color: #b8d4f0;
    margin-bottom: 0.5rem;
}

footer a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.error {
    color: #ff5080;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 80, 128, 0.5);
}

.success {
    color: #00ffc8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .user-info {
        flex-direction: column;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}