@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;600;800;900&display=swap');

/* ===== NEYCARD GLOBAL STYLES ===== */

:root {
    --nc-bg: #0b0b0f;
    --nc-surface: rgba(22, 22, 31, 0.7);
    --nc-surface-solid: #16161f;
    --nc-surface-light: rgba(255, 255, 255, 0.05);
    --nc-primary: #6366f1;
    --nc-secondary: #a855f7;
    --nc-primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --nc-text: #ffffff;
    --nc-text-muted: rgba(255, 255, 255, 0.5);
    --nc-radius: 20px;
    --nc-radius-sm: 12px;
    /* Primary with opacity */
    --nc-primary-05: rgba(99, 102, 241, 0.05);
    --nc-primary-08: rgba(99, 102, 241, 0.08);
    --nc-primary-10: rgba(99, 102, 241, 0.1);
    --nc-primary-12: rgba(99, 102, 241, 0.12);
    --nc-primary-15: rgba(99, 102, 241, 0.15);
    --nc-primary-18: rgba(99, 102, 241, 0.18);
    --nc-primary-20: rgba(99, 102, 241, 0.2);
    --nc-primary-25: rgba(99, 102, 241, 0.25);
    --nc-primary-30: rgba(99, 102, 241, 0.3);
    --nc-primary-40: rgba(99, 102, 241, 0.4);
    --nc-primary-50: rgba(99, 102, 241, 0.5);
    --nc-primary-06: rgba(99, 102, 241, 0.06);
    /* White/muted overlays */
    --nc-white-02: rgba(255, 255, 255, 0.02);
    --nc-white-03: rgba(255, 255, 255, 0.03);
    --nc-white-04: rgba(255, 255, 255, 0.04);
    --nc-white-05: rgba(255, 255, 255, 0.05);
    --nc-white-06: rgba(255, 255, 255, 0.06);
    --nc-white-08: rgba(255, 255, 255, 0.08);
    --nc-white-10: rgba(255, 255, 255, 0.1);
    --nc-white-12: rgba(255, 255, 255, 0.12);
    --nc-white-15: rgba(255, 255, 255, 0.15);
    --nc-white-20: rgba(255, 255, 255, 0.2);
    --nc-white-35: rgba(255, 255, 255, 0.35);
    --nc-white-40: rgba(255, 255, 255, 0.4);
    --nc-white-50: rgba(255, 255, 255, 0.5);
    --nc-white-60: rgba(255, 255, 255, 0.6);
    --nc-white-70: rgba(255, 255, 255, 0.7);
    /* Error */
    --nc-error: #ef4444;
    --nc-error-10: rgba(239, 68, 68, 0.1);
    --nc-error-30: rgba(239, 68, 68, 0.3);
    /* Border */
    --nc-border: rgba(255, 255, 255, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #0b0b0f;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--nc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ===== SOCIAL CARD GRID ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 20px;
    max-width: 480px;
    margin: 0 auto;
}

.preview-inner {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1200px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-item:hover {
    transform: translateY(-4px);
    filter: brightness(1.15);
}

.social-item:active {
    transform: scale(0.94);
}

.social-icon-box {
    width: 72px;
    height: 72px;
    border-radius: var(--nc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.2s ease;
}

.social-icon-box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.social-label {
    font-size: 11px;
    color: var(--nc-text-muted);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== CARD PAGE ===== */
.card-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--nc-bg);
    padding-bottom: 90px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 24px 30px;
    width: 100%;
    max-width: 480px;
}

.card-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.card-header-info h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card-header-info p {
    margin: 0;
    font-size: 13px;
    color: var(--nc-text-muted);
    font-weight: 400;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--nc-radius);
    object-fit: cover;
    box-shadow: 0 4px 20px var(--nc-primary-30);
    border: 2px solid var(--nc-primary);
}

/* ===== BOTTOM BAR ===== */
.card-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    /* Width of the drawer */
    right: 0;
    height: 70px;
    background: var(--nc-surface);
    border-top: 1px solid var(--nc-white-06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    backdrop-filter: blur(20px);
    z-index: 100;
    transition: left 0.3s ease;
}

@media (max-width: 960px) {
    .card-bottom-bar {
        left: 0;
    }
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--nc-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
}

.bottom-bar-item:hover {
    color: var(--nc-primary);
}

.bottom-bar-item .mud-icon-root {
    font-size: 22px;
}

/* ===== ADMIN PAGES ===== */
.admin-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* ===== CARD SECTIONS ===== */
.social-content {
    width: 100%;
    max-width: 480px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-section {
    background: var(--nc-white-03);
    border-radius: 20px;
    padding: 16px 0;
    border: 1px solid var(--nc-white-05);
}

.section-header {
    display: flex;
    align-items: center;
    padding: 0 20px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--nc-white-05);
    font-size: 13px;
    font-weight: 700;
    color: var(--nc-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease both;
}

.animate-in-delay-1 {
    animation-delay: 0.1s;
}

.animate-in-delay-2 {
    animation-delay: 0.2s;
}

.animate-in-delay-3 {
    animation-delay: 0.3s;
}