/* General Reset & Variables */
:root {
    --bg-dark: #09090b;
    --bg-card: rgba(18, 18, 22, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    
    /* Branding / Accent Colors */
    --accent-glow-1: rgba(220, 38, 38, 0.15); /* YouTube Red glow */
    --accent-glow-2: rgba(83, 233, 41, 0.15); /* Kick Lime Green glow */
    
    /* Social Colors */
    --c-youtube: #ff0000;
    --c-kick: #53e929;
    --c-instagram: #e1306c;
    --c-tiktok: #00f2fe;
    --c-spotify: #1ed760;
    --c-steam: #171a21;
    --c-x: #1da1f2;
    --c-valorant: #ff4655;
    --c-battlenet: #00aeff;
    --c-discord: #5865f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-glow-1) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--accent-glow-2) 0%, transparent 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 10px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--c-valorant), var(--c-kick));
    z-index: 1;
    animation: rotateRing 6s linear infinite;
    opacity: 0.8;
}

@keyframes rotateRing {
    100% {
        transform: rotate(360deg);
    }
}

.username {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-card);
    display: inline-block;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    background: rgba(18, 18, 22, 0.8);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    gap: 5px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tabs Content Layout */
.tabs-content {
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

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

/* Tab 1: Links Grid */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Link Cards Custom Styling */
.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s;
}

.link-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-right: 16px;
    transition: transform 0.3s;
}

.link-card:hover .card-icon {
    transform: scale(1.1);
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-action {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    position: relative;
}

.link-card:hover .card-action {
    color: var(--text-primary);
}

/* Custom Brands Left-Border & Color Tuning on Hover */
.youtube::before { background: var(--c-youtube); }
.youtube:hover { box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15); }
.youtube:hover .card-icon { color: var(--c-youtube); }

.kick::before { background: var(--c-kick); }
.kick:hover { box-shadow: 0 8px 24px rgba(83, 233, 41, 0.15); }
.kick:hover .card-icon { color: var(--c-kick); }

.instagram::before { background: var(--c-instagram); }
.instagram:hover { box-shadow: 0 8px 24px rgba(225, 48, 108, 0.15); }
.instagram:hover .card-icon { color: var(--c-instagram); }

.tiktok::before { background: var(--c-tiktok); }
.tiktok:hover { box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15); }
.tiktok:hover .card-icon { color: var(--c-tiktok); }

.spotify::before { background: var(--c-spotify); }
.spotify:hover { box-shadow: 0 8px 24px rgba(30, 215, 96, 0.15); }
.spotify:hover .card-icon { color: var(--c-spotify); }

.steam::before { background: #66c0f4; }
.steam:hover { box-shadow: 0 8px 24px rgba(102, 192, 244, 0.15); }
.steam:hover .card-icon { color: #66c0f4; }

.x-twitter::before { background: #ffffff; }
.x-twitter:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1); }
.x-twitter:hover .card-icon { color: #ffffff; }

.valorant::before { background: var(--c-valorant); }
.valorant:hover { box-shadow: 0 8px 24px rgba(255, 70, 85, 0.15); cursor: pointer; }
.valorant:hover .card-icon { color: var(--c-valorant); }

.battlenet::before { background: var(--c-battlenet); }
.battlenet:hover { box-shadow: 0 8px 24px rgba(0, 174, 255, 0.15); cursor: pointer; }
.battlenet:hover .card-icon { color: var(--c-battlenet); }

.discord::before { background: var(--c-discord); }
.discord:hover { box-shadow: 0 8px 24px rgba(88, 101, 242, 0.15); cursor: pointer; }
.discord:hover .card-icon { color: var(--c-discord); }

/* Tooltip / Toast for copied text */
.tooltip {
    position: absolute;
    right: 0;
    top: -30px;
    background: #27272a;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-card);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

/* Tab 2: Videos Container */
.shorts-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shorts-header {
    text-align: center;
}

.shorts-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shorts-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.short-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.short-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.short-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 Aspect Ratio */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.short-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.short-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding: 2px 4px;
}

.shorts-action {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 580px) {
    .shorts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .short-wrapper {
        max-width: 280px;
        margin: 0 auto;
        padding-top: 497px; /* Fixed height ratio representation on mobile for better visibility */
    }
    .short-card {
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--c-youtube);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Tab 3: About & Specs */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.glass-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.bio-card strong {
    color: var(--text-primary);
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: background 0.3s;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.spec-icon {
    font-size: 1.2rem;
    color: var(--c-kick);
    margin-right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(83, 233, 41, 0.1);
    border-radius: 8px;
}

.spec-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .username {
        font-size: 1.8rem;
    }
    
    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Admin Panel Modal Styling */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-modal.show {
    display: flex;
}

.admin-content {
    background: #111115;
    border: 1px solid var(--border-card);
    border-radius: 24px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: adminScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes adminScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-card);
}

.admin-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-close:hover {
    color: #ffffff;
}

.admin-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
}

.admin-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 12px;
}

.admin-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--c-kick);
    border-radius: 2px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.shorts-manager-inputs input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.shorts-manager-inputs input:focus {
    outline: none;
    border-color: rgba(83, 233, 41, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Shorts manager style */
.shorts-manager-inputs {
    display: flex;
    gap: 10px;
}

.shorts-manager-inputs input:first-child {
    flex: 2;
}

.shorts-manager-inputs input:nth-child(2) {
    flex: 2;
}

.btn-add {
    background: rgba(83, 233, 41, 0.1);
    color: var(--c-kick);
    border: 1px solid rgba(83, 233, 41, 0.2);
    padding: 0 16px;
}

.btn-add:hover {
    background: var(--c-kick);
    color: #000000;
}

.shorts-list-admin {
    margin-top: 10px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
}

.shorts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.shorts-table th, 
.shorts-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shorts-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
}

.shorts-table tr:last-child td {
    border-bottom: none;
}

.btn-delete-short {
    background: rgba(220, 38, 38, 0.1);
    color: #ff4655;
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-delete-short:hover {
    background: #ff4655;
    color: #ffffff;
}

/* Save footer button */
.admin-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-card);
    display: flex;
    justify-content: flex-end;
}

.btn-save-all {
    background: var(--c-kick);
    color: #000000;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.btn-save-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(83, 233, 41, 0.4);
}
