/* ===================================
   SOCIAL MEDIA PROFILE THEME
   Modern, Clean, Responsive
   =================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --card-bg: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-hover: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #facc15 100%);
    --cover-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --card-bg: #1a1a1a;
    --cover-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    font-size: 0.9rem;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    color: #fbbf24;
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .fa-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .fa-sun {
    opacity: 1;
    transform: rotate(0);
}

/* App Container */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    box-shadow: 0 0 40px var(--shadow);
    padding-bottom: 0.5rem;
}

/* Cover Photo */
.cover-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cover-photo-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/1363876/pexels-photo-1363876.jpeg') center/cover no-repeat fixed;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.cover-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cover-gradient);
    opacity: 0.5;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
    animation: cover-shimmer 3s ease-in-out infinite;
}

@keyframes cover-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Profile Header */
.profile-header {
    padding: 0 1.5rem 1.5rem;
    position: relative;
}

.profile-avatar-container {
    position: relative;
    margin-top: -75px;
    margin-bottom: 1rem;
    display: inline-block;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #000000;
    transition: transform 0.3s ease;
    animation: instagram-pulse 2s ease-in-out infinite;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 5px;
    background: #db2777;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #000000;
    pointer-events: none;
    z-index: 1;
}

.profile-avatar:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes instagram-pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0px rgba(219, 39, 119, 0),
            0 0 0 3px rgba(219, 39, 119, 1),
            0 0 15px rgba(219, 39, 119, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 10px rgba(219, 39, 119, 0.4),
            0 0 0 5px rgba(219, 39, 119, 0.8),
            0 0 25px rgba(219, 39, 119, 0.5);
    }
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000000;
    display: block;
    position: relative;
    z-index: 2;
}

.online-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.verify-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Inline Verify Badge (next to name) */
.verify-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1DA1F2;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    cursor: default;
    box-shadow: 0 2px 8px var(--shadow);
    vertical-align: middle;
    padding: 0;
}

.verify-badge-inline i {
    font-size: 0.7rem;
}

.verify-badge-inline:hover {
    background: #1a91da;
    transform: scale(1.1);
}

.verify-badge i {
    font-size: 0.9rem;
}

/* Profile Info */
.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.username {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item i {
    color: var(--primary);
}

.meta-item a {
    color: var(--primary);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.stat-btn:hover {
    color: var(--primary);
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.btn-icon i {
    transition: transform 0.3s ease;
}

.btn-icon:hover {
    background: var(--border);
}

/* Profile Links */
.profile-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Navigation Tabs */
.profile-nav {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab i {
    font-size: 1.2rem;
}

.nav-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px 3px 0 0;
}

/* Profile Content */
.profile-content {
    padding: 1.5rem;
    min-height: 500px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Posts Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post:hover {
    box-shadow: 0 8px 30px var(--shadow-lg);
    transform: translateY(-2px);
}

/* Global Card Hover Highlight */
.post,
.about-card,
.badge-card,
.repo-card,
.stat-card {
    position: relative;
}

.post::before,
.about-card::before,
.badge-card::before,
.repo-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post:hover,
.about-card:hover,
.badge-card:hover,
.repo-card:hover,
.stat-card:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.08), rgba(250, 204, 21, 0.08));
}

.post:hover::before,
.about-card:hover::before,
.badge-card:hover::before,
.repo-card:hover::before,
.stat-card:hover::before {
    opacity: 1;
    background: var(--gradient-hover);
}

.stat-card::before {
    border-radius: 12px;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.85rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 1.25rem 1.25rem 0.75rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.post-content {
    padding: 1.25rem;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title i {
    color: var(--primary);
}

.post-company,
.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-company i,
.post-date i {
    color: var(--text-muted);
}

.post-body {
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.post-body ul {
    padding-left: 1.25rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.action-btn.liked i {
    color: #ec4899;
    animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Heart Evaporation Animation - Livestream Style */
.heart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    color: #ec4899;
    animation: heart-float-up 1.5s ease-out forwards;
    z-index: 1000;
    filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.3));
}

@keyframes heart-float-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) translateX(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-30px) scale(1.1) translateX(calc(var(--drift, 0) * 0.25));
    }
    40% {
        transform: translateY(-60px) scale(1) translateX(calc(var(--drift, 0) * 0.5));
    }
    60% {
        transform: translateY(-90px) scale(0.9) translateX(calc(var(--drift, 0) * 0.75));
    }
    80% {
        opacity: 0.8;
        transform: translateY(-120px) scale(0.7) translateX(var(--drift, 0));
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.5) translateX(var(--drift, 0));
    }
}

/* Section Divider */
.section-divider {
    margin: 2rem 0 1rem;
    padding: 1rem 0;
    border-top: 2px solid var(--border);
}

.section-divider h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-divider h2 i {
    color: var(--primary);
}

/* About Grid */
.about-grid {
    display: grid;
    gap: 1rem;
}

.about-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.about-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-card h3 i {
    color: var(--primary);
}

.education-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.education-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.education-item .school {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.education-item .period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.education-item .coursework {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    gap: 1rem;
}

.skill-category h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.skill-category h4 i {
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.85rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Badges Header */
.badges-header {
    margin-bottom: 1rem;
}

.credly-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.credly-link:hover {
    background: var(--primary);
    color: white;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.badge-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.badge-image-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.badge-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-card:hover .badge-icon,
.badge-card.spinning .badge-icon {
    transform: scale(1.15) rotate(360deg);
}

/* Badge Image (loaded dynamically) */
.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-card:hover .badge-img,
.badge-card.spinning .badge-img {
    transform: scale(1.15) rotate(360deg);
}

.badge-icon i {
    font-size: 2.5rem;
    color: white;
}

.badge-icon.aws { background: linear-gradient(135deg, #FF9900, #FFB84D); }
.badge-icon.gcp { background: linear-gradient(135deg, #4285F4, #34A853); }
.badge-icon.oci { background: linear-gradient(135deg, #F80000, #C40000); }
.badge-icon.finops { background: linear-gradient(135deg, #00D4AA, #00A885); }
.badge-icon.github { background: linear-gradient(135deg, #181717, #333333); }
.badge-icon.azure { background: linear-gradient(135deg, #0078D4, #00BCF2); }
.badge-icon.wqu { background: linear-gradient(135deg, #003366, #0055A5); }
.badge-icon.datadog { background: linear-gradient(135deg, #632CA6, #8B5CF6); }
.badge-icon.sre { background: linear-gradient(135deg, #0F9D58, #34A853); }

.badge-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.badge-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.verify-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.verify-link:hover {
    background: var(--primary);
    color: white;
}

/* Repos Header */
.repos-header {
    margin-bottom: 1rem;
}

.github-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-profile-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Repos Grid */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.repo-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.repo-card:hover {
    box-shadow: 0 8px 25px var(--shadow);
    transform: translateY(-3px);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.repo-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
    margin-right: 0.5rem;
}

.repo-link-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.repo-link-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.repo-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.repo-links .repo-link-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-tertiary);
}

.repo-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.repo-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.repo-meta i {
    margin-right: 0.25rem;
}

/* GitHub Stats */
.github-stats h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-stats h3 i {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Game Section */
.game-section {
    text-align: center;
}

.game-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.game-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: inline-block;
    max-width: 100%;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.game-stats .stat {
    text-align: center;
}

.game-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.game-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.game-canvas {
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
}

.doom-frame {
    display: block;
    width: min(800px, 100%);
    aspect-ratio: 8 / 5;
    height: auto;
    border: 0;
    border-radius: 8px;
    background: #000000;
}

/* Game Carousel */
.game-carousel {
    position: relative;
    height: 250px;
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.game-carousel-track {
    position: relative;
    height: 100%;
}

.game-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    padding: 1rem 1rem 1.25rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    z-index: 1;
}

.game-card:hover {
    box-shadow: 0 8px 25px var(--shadow);
}

.game-card:focus-visible {
    border-color: var(--primary);
}

.game-card.prev {
    transform: translateX(calc(-50% - 200px)) translateY(-50%) scale(0.82);
    opacity: 0.55;
    filter: blur(1px);
    z-index: 1;
}

.game-card.next {
    transform: translateX(calc(-50% + 200px)) translateY(-50%) scale(0.82);
    opacity: 0.55;
    filter: blur(1px);
    z-index: 1;
}

.game-card.active {
    transform: translateX(-50%) translateY(-50%) scale(1.12);
    opacity: 1;
    filter: none;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.08), rgba(250, 204, 21, 0.08));
    box-shadow: 0 14px 40px var(--shadow-lg);
    z-index: 3;
}

.game-card.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-hover);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.game-card-art {
    width: 110px;
    height: 110px;
    margin: 0 auto 0.75rem;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: 0 6px 18px var(--shadow);
}

.game-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.game-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 18px var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 22px var(--shadow-lg);
}

/* Game Stage */
.game-stage {
    max-width: 820px;
    margin: 0 auto;
}

.game-panel {
    display: none;
}

.game-panel.active {
    display: block;
    animation: gameFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Coming Soon game panel */
.game-coming-soon {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(236, 72, 153, 0.06), rgba(250, 204, 21, 0.06));
}

.coming-soon-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-size: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--shadow);
}

.game-coming-soon h3 {
    font-size: 1.4rem;
}

.coming-soon-text {
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--gradient-hover);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes gameFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-controls {
    margin-top: 1rem;
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.game-hint {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
.profile-footer {
    padding: 0.75rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 1.5rem;
}

.footer-content {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: footer-scroll 20s linear infinite;
}

@keyframes footer-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100vw);
    }
}

.footer-content p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: #16a34a;
    border: 3px solid #052e16;
    color: #dcfce7;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow:
        inset 0 -5px 0 rgba(0, 0, 0, 0.25),
        inset 0 5px 0 rgba(255, 255, 255, 0.2),
        0 5px 0 #052e16,
        0 6px 18px rgba(22, 163, 74, 0.5);
    transition: all 0.15s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-2px) scale(1.05);
    background: #22c55e;
    box-shadow:
        inset 0 -5px 0 rgba(0, 0, 0, 0.25),
        inset 0 5px 0 rgba(255, 255, 255, 0.2),
        0 7px 0 #052e16,
        0 10px 22px rgba(22, 163, 74, 0.6);
}

.scroll-top:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 5px 0 rgba(0, 0, 0, 0.25),
        0 1px 0 #052e16;
}

/* Chatbot Button — retro ?-block */
.chatbot-btn {
    position: fixed;
    bottom: 2rem;
    right: calc(2rem + 70px);
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #fbbf24;
    border: 3px solid #78350f;
    color: #78350f;
    font-size: 1.9rem;
    font-weight: 800;
    font-family: 'Fira Code', 'Courier New', monospace;
    cursor: pointer;
    box-shadow:
        inset 0 -6px 0 rgba(120, 53, 15, 0.25),
        inset 0 6px 0 rgba(255, 255, 255, 0.35),
        0 6px 0 #78350f,
        0 8px 20px rgba(245, 158, 11, 0.5);
    transition: all 0.15s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coinBob 2.4s ease-in-out infinite;
}

.chatbot-btn:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow:
        inset 0 -6px 0 rgba(120, 53, 15, 0.25),
        inset 0 6px 0 rgba(255, 255, 255, 0.35),
        0 8px 0 #78350f,
        0 12px 25px rgba(245, 158, 11, 0.6);
}

.chatbot-btn:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 6px 0 rgba(120, 53, 15, 0.25),
        0 2px 0 #78350f;
}

@keyframes coinBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.retro-q {
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.4);
}

.chatbot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Fira Code', 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #7f1d1d;
    box-shadow: 0 2px 0 #7f1d1d;
}

/* Chatbot Window — terminal + retro hybrid */
.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 360px;
    height: 470px;
    background: #0b0e0d;
    border-radius: 6px;
    box-shadow: 0 10px 50px var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
    border: 3px solid #22c55e66;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(34, 197, 94, 0.03) 0px,
        rgba(34, 197, 94, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

.chatbot-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24 0%, #fbbf24 55%, #22c55e 55%, #22c55e 100%);
    z-index: 5;
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #111615;
    color: #4ade80;
    border-bottom: 2px solid #fbbf24;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.retro-coin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 35% 30%, #fef08a 0%, #fbbf24 45%, #b45309 100%);
    border: 2px solid #78350f;
    box-shadow:
        inset 0 -3px 0 rgba(120, 53, 15, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5);
    animation: coinSpin 2.4s steps(1) infinite;
}

@keyframes coinSpin {
    0%, 49% { width: 18px; opacity: 1; }
    50%, 100% { width: 4px; opacity: 0.75; }
}

.chatbot-title h3 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.online-indicator {
    font-size: 0.7rem;
    opacity: 0.85;
    color: #86efac;
}

.online-indicator i {
    font-size: 0.55rem;
    margin-right: 0.25rem;
    animation: pulse 2s ease-in-out infinite;
}

.close-chat {
    background: transparent;
    border: 1px solid #22c55e55;
    color: #4ade80;
    font-size: 0.9rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chat:hover {
    background: #22c55e22;
}

.terminal-log {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #4ade8077;
    border-bottom: 1px dashed #22c55e33;
    user-select: none;
}

.terminal-log .ok {
    color: #4ade80;
}

/* Scrollbars — retro terminal theme */
* {
    scrollbar-width: thin;
    scrollbar-color: #16a34a #0b0e0d;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0e0d;
    border-left: 1px solid #22c55e33;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border: 2px solid #0b0e0d;
    border-radius: 0;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

::-webkit-scrollbar-corner {
    background: #0b0e0d;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #111615;
}

.chatbot-body::-webkit-scrollbar {
    width: 8px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: #111615;
    border-left: 1px solid #fbbf2444;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border: 2px solid #111615;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: #fcd34d;
}

.chat-message {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
    border-radius: 2px;
    font-size: 0.8rem;
    line-height: 1.5;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.chat-message.bot {
    background: #0f1412;
    color: #4ade80;
    align-self: flex-start;
    border: 1px solid #22c55e33;
    border-left: 4px solid #22c55e;
    border-bottom: 3px solid #22c55e33;
}

.chat-message.bot::before {
    content: 'assistant:~$ ';
    color: #22c55e66;
    font-size: 0.75em;
}

.chat-message.user {
    background: #fbbf24;
    color: #451a03;
    align-self: flex-end;
    border: 1px solid #fde68a;
    border-bottom: 3px solid #b45309;
    font-weight: 500;
}

.chatbot-input {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid #22c55e44;
    gap: 0.5rem;
    background: #0b0e0d;
}

.prompt-symbol {
    color: #4ade80;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    flex-shrink: 0;
}

.chatbot-input input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    background: transparent;
    color: #bef264;
    outline: none;
    caret-color: #4ade80;
    border-bottom: 1px solid #22c55e44;
    transition: border-color 0.3s ease;
}

.chatbot-input input::placeholder {
    color: #4ade8033;
}

.chatbot-input input:focus {
    border-bottom-color: #4ade80;
}

.chatbot-input button {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: #fbbf24;
    border: 2px solid #78350f;
    color: #78350f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -4px 0 rgba(120, 53, 15, 0.25),
        inset 0 4px 0 rgba(255, 255, 255, 0.3),
        0 3px 0 #78350f;
    transition: all 0.15s ease;
}

.chatbot-input button:hover {
    background: #fcd34d;
    transform: translateY(-1px);
    box-shadow:
        inset 0 -4px 0 rgba(120, 53, 15, 0.25),
        inset 0 4px 0 rgba(255, 255, 255, 0.3),
        0 4px 0 #78350f;
}

.chatbot-input button:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 4px 0 rgba(120, 53, 15, 0.25),
        0 0 0 #78350f;
}

.chatbot-input button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chatbot-input button:disabled:hover {
    transform: none;
    background: #fbbf24;
}

.chat-message.typing {
    animation: typingPulse 1.2s ease-in-out infinite;
    color: #4ade8088;
}

@keyframes typingPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* Focus Visible */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .theme-toggle,
    .chatbot-btn,
    .chatbot-window,
    .scroll-top,
    .skip-link,
    .toast,
    .profile-nav,
    .btn,
    .post-actions {
        display: none !important;
    }
    
    .profile-content {
        padding: 0;
    }
    
    .tab-panel {
        display: block !important;
        margin-bottom: 2rem;
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cover-photo {
        height: 150px;
    }

    .cover-photo-bg {
        background-attachment: scroll !important;
        transform: none !important;
    }

    .app-container {
        max-width: 100%;
    }
    
    .cover-photo {
        height: 150px;
    }
    
    .profile-avatar-container {
        margin-top: -60px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        background: #000000;
    }

    .profile-avatar::before {
        padding: 4px;
    }

    .profile-avatar::after {
        inset: 4px;
    }

    .profile-avatar img {
        width: 100%;
        height: 100%;
        border: 2px solid #000000;
    }

    .profile-avatar:hover {
        transform: scale(1.03);
    }
    
    .profile-name {
        font-size: 1.5rem;
    }

    .verify-badge-inline {
        width: 18px;
        height: 18px;
        margin-left: 0.35rem;
        margin-right: 0.35rem;
    }

    .verify-badge-inline i {
        font-size: 0.6rem;
    }

    .profile-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }

    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        height: 44px;
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }

    .btn span {
        display: none;
    }

    .btn i {
        margin: 0;
    }

    .btn-primary span,
    .btn-secondary span {
        display: inline;
    }

    .profile-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tab {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .profile-content {
        padding: 1rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .repos-grid {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        gap: 1rem;
    }
    
    .game-canvas {
        width: 100%;
        height: auto;
    }

    .doom-frame {
        width: 100%;
    }

    .game-card {
        width: 180px;
    }

    .game-card.prev {
        transform: translateX(calc(-50% - 170px)) translateY(-50%) scale(0.82);
    }

    .game-card.next {
        transform: translateX(calc(-50% + 170px)) translateY(-50%) scale(0.82);
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
    }
    
    .chatbot-window {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 5.5rem;
    }
    
    .scroll-top,
    .chatbot-btn {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chatbot-btn {
        right: 4.5rem;
    }

    /* Minimum touch target sizes */
    .nav-tab,
    .social-menu-item,
    .btn,
    .chatbot-btn,
    .game-btn {
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .game-carousel {
        height: 250px;
    }

    .game-card {
        width: 180px;
    }

    .game-card.prev,
    .game-card.next {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(0.8);
        pointer-events: none;
    }

    .game-card.active {
        transform: translateX(-50%) translateY(-50%) scale(1.1);
    }

    .game-card-art {
        width: 96px;
        height: 96px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 0 1rem 1rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .profile-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-stats {
        justify-content: space-around;
    }

    .profile-actions {
        justify-content: center;
        gap: 0.5rem;
    }

    .profile-links {
        justify-content: center;
    }

    .post-title {
        font-size: 1rem;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .profile-footer {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }

    .footer-content {
        animation-duration: 15s;
    }
}
