/* MASTER GLASSMORPHISM DESIGN SYSTEM - BRUNO ENRIKE (@bruenrike) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
    --bg-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%), 
                radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.12) 0px, transparent 50%), 
                radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%), 
                radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.12) 0px, transparent 50%), 
                #f8fafc;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-sidebar: rgba(255, 255, 255, 0.6);
    --glass-header: rgba(255, 255, 255, 0.6);
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-border-hover: 1px solid rgba(99, 102, 241, 0.4);
    --glass-shadow: 0 10px 30px rgba(31, 38, 135, 0.06), 0 4px 6px rgba(0, 0, 0, 0.02);
    --glass-shadow-hover: 0 20px 45px rgba(99, 102, 241, 0.16);

    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --accent: #ec4899;
    --accent-light: rgba(236, 72, 153, 0.1);
    --emerald: #10b981;
    --emerald-light: rgba(16, 185, 129, 0.1);

    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body {
    background: var(--bg-mesh);
    color: var(--text-dark);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: var(--glass-sidebar);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: var(--glass-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--primary);
    background: var(--glass-bg);
    border: var(--glass-border);
}

.nav-btn.active {
    color: var(--primary);
    background: #ffffff;
    border: var(--glass-border-hover);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: var(--glass-border);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.profile-info h3 { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); }
.profile-info p { font-size: 0.78rem; color: var(--text-muted); }

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    padding: 24px 44px;
    background: var(--glass-header);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9;
}

.header-title h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.header-title p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    background: #ffffff;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    box-shadow: var(--glass-shadow);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 0.88rem;
    width: 100%;
}

.header-user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: var(--glass-border);
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
}

.header-user-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.header-user-name { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.header-user-handle { font-size: 0.75rem; color: var(--accent); font-weight: 500; }

.content-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 36px 44px;
}

.tab-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Info Banner */
.glass-info-banner {
    background: #ffffff;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--glass-shadow);
}

.info-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-banner-content .info-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.glass-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    border: var(--glass-border);
}

.glass-pill-badge.primary { background: var(--primary-light); color: var(--primary); }
.glass-pill-badge.accent { background: var(--accent-light); color: var(--accent); }

/* Hero Cards */
.overview-hero-card, .dashboard-hero {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 24px;
    padding: 32px 36px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.25);
    margin-bottom: 28px;
}

.hero-tag, .card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.dashboard-hero h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.dashboard-hero p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* General Card Containers */
.soft-white-card, .principle-card, .guide-card, .script-showcase-card {
    background: #ffffff;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.soft-white-card:hover, .principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.principle-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-dark);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.principle-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.55;
}

/* Hooks Grid */
.hooks-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.hook-interactive-card {
    background: #ffffff;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.hook-interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.hook-badge { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.hook-text { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); line-height: 1.45; }
.hook-desc { font-size: 0.82rem; color: var(--text-muted); }

.copy-hook-btn, .action-btn-primary, .download-pdf-btn {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.copy-hook-btn:hover, .action-btn-primary:hover, .download-pdf-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Benchmarking Section */
.bench-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.bench-header-bar h3 { font-family: 'Outfit', sans-serif !important; font-size: 1.2rem !important; font-weight: 700 !important; }
.bench-header-bar p { font-size: 0.88rem; color: var(--text-muted); margin-top: 2px; }

.bench-filter-buttons, .feed-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.bench-btn, .filter-btn {
    background: #ffffff;
    border: var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.bench-btn.active, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.bench-grid, .feed-grid, .calendar-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bench-card {
    background: #ffffff;
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.bench-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow-hover);
}

.bench-cover-wrapper { height: 160px; position: relative; overflow: hidden; background: #4338ca; }
.bench-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.bench-card-overlay { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.bench-flag { font-size: 0.72rem; font-weight: 700; color: #ffffff; background: rgba(15, 23, 42, 0.8); padding: 4px 10px; border-radius: 6px; }
.bench-likes { font-size: 0.75rem; font-weight: 700; color: #ffffff; background: var(--accent); padding: 4px 10px; border-radius: 6px; }

.bench-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.bench-name { font-family: 'Outfit', sans-serif !important; font-size: 1.1rem !important; font-weight: 700 !important; color: var(--text-dark); }
.bench-name small { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.bench-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bench-niche-tag { font-size: 0.72rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 3px 8px; border-radius: 6px; }
.bench-subtopic-tag { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-light); padding: 3px 8px; border-radius: 6px; }
.bench-title-box { font-size: 0.88rem; color: var(--text-dark); background: #f8fafc; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--primary); }

.bench-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
}

.bench-link-btn:hover { background: var(--primary); color: #ffffff; }

/* Right Panel */
.right-panel {
    background: var(--glass-sidebar);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: var(--glass-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    z-index: 10;
}

.right-panel-header { display: flex; justify-content: space-between; align-items: center; }
.right-panel-header h3 { font-family: 'Outfit', sans-serif !important; font-size: 1.15rem !important; font-weight: 700 !important; }
.view-all-link { font-size: 0.82rem; font-weight: 600; color: var(--primary); text-decoration: none; }

.capsule-switcher { background: #e2e8f0; padding: 4px; border-radius: 30px; display: flex; gap: 4px; }
.switcher-btn { flex: 1; border: none; background: transparent; padding: 8px 14px; border-radius: 30px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.switcher-btn.active { background: #ffffff; color: var(--primary); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15); }

.creators-list { display: flex; flex-direction: column; gap: 14px; }
.creator-item-row { background: #ffffff; border: var(--glass-border); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.creator-user-info { display: flex; align-items: center; gap: 12px; }
.creator-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.creator-details-name { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.creator-details-sub { font-size: 0.75rem; color: var(--text-muted); }
.creator-action-btn { width: 32px; height: 32px; border-radius: 10px; border: var(--glass-border); background: #ffffff; color: var(--primary); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.creator-action-btn:hover { background: var(--primary); color: #ffffff; }

.live-map-card { background: #ffffff; border: var(--glass-border); border-radius: 20px; padding: 20px; text-align: center; }
.profile-avatar-large { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.2); }

/* Drawer */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-overlay.active { opacity: 1; pointer-events: auto; }
.post-drawer { position: fixed; top: 0; right: -580px; width: 550px; height: 100vh; background: #ffffff; border-left: var(--glass-border); z-index: 100; display: flex; flex-direction: column; box-shadow: -10px 0 50px rgba(0,0,0,0.1); transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.post-drawer.active { right: 0; }
.drawer-header { padding: 24px; border-bottom: var(--glass-border); display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-title-area { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.drawer-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: var(--primary-light); color: var(--primary); }
#drawer-post-title { font-family: 'Outfit', sans-serif !important; font-size: 1.3rem !important; font-weight: 700 !important; color: var(--text-dark); }
.close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer; line-height: 1; }
.drawer-content { flex-grow: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.drawer-card { background: #f8fafc; border: var(--glass-border); border-radius: 16px; padding: 18px; }
.drawer-card h4 { font-family: 'Outfit', sans-serif !important; font-size: 1rem !important; font-weight: 700 !important; margin-bottom: 8px; }
.drawer-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.copy-btn { background: var(--primary); color: #ffffff; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--text-dark); color: #ffffff; padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 0.88rem; z-index: 999; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; }
.toast.active { transform: translateY(0); opacity: 1; }
