/* css/creator-dashboard.css - Creator Dashboard Styles */
/* Color Theme - Same as content-detail.html and explore-screen.html */

:root {
    --deep-black: #0A0E12;
    --deep-navy: #0F172A;
    --soft-white: #F8FAFC;
    --slate-grey: #94A3B8;
    --bantu-blue: #1D4ED8;
    --warm-gold: #F59E0B;
    --error-color: #EF4444;
    --success-color: #10B981;
    --glow-cycle-1: #00A3FF;
    --glow-cycle-2: #0066FF;
    --glow-cycle-3: #8B5CF6;
    --glow-cycle-4: #EC4899;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(148, 163, 184, 0.2);
    --hover-overlay: rgba(255, 255, 255, 0.05);
    --active-overlay: rgba(245, 158, 11, 0.1);
    --indigo: #4F46E5;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --blue-glow: rgba(29, 78, 216, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep-black);
    color: var(--soft-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--bantu-blue);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animated Background - Same as content-detail.html */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.glow-cycle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 8s infinite ease-in-out;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-cycle-1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--glow-cycle-2);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: var(--glow-cycle-3);
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.glow-4 {
    width: 250px;
    height: 250px;
    background: var(--glow-cycle-4);
    top: 20%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
}

/* Header - Updated to match explore-screen.html */
.header {
    background: rgba(10, 14, 18, 0.9);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(29, 78, 216, 0.3);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(to right, var(--soft-white), var(--bantu-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--deep-black);
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bantu-blue), var(--warm-gold));
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bantu-blue), var(--warm-gold));
    color: white;
    font-size: 16px;
}

/* Creator Dashboard Specific Styles */
.dashboard-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--bantu-blue), var(--warm-gold));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.1;
}

.creator-profile {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
}

.creator-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--warm-gold);
    object-fit: cover;
    background: linear-gradient(135deg, var(--bantu-blue), var(--glow-cycle-3));
}

.founder-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: var(--warm-gold);
    border-radius: 50%;
    border: 2px solid var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-black);
    font-size: 14px;
    animation: pulse 2s infinite;
}

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

.creator-info {
    flex: 1;
}

.welcome-text {
    font-size: 16px;
    color: var(--slate-grey);
    margin-bottom: 5px;
}

.creator-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-white), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.connector-count {
    font-size: 16px;
    color: var(--warm-gold);
    font-weight: 600;
}

/* Stats Row - UPDATED to include 4th stat card */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-icon {
    font-size: 32px;
    color: var(--warm-gold);
    margin-bottom: 15px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--soft-white);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--slate-grey);
}

/* Sections */
.dashboard-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-white), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.see-all-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--warm-gold);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.see-all-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--warm-gold);
}

/* My Uploads */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.upload-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.upload-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.upload-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-published {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warm-gold);
}

.status-draft {
    background: rgba(148, 163, 184, 0.2);
    color: var(--slate-grey);
}

/* Upload New Content */
.upload-promo {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.promo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-white), var(--bantu-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.promo-text {
    font-size: 16px;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 25px;
    line-height: 1.5;
}

.upload-btn {
    background: linear-gradient(135deg, var(--bantu-blue), var(--warm-gold));
    color: var(--soft-white);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(77, 171, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bantu-blue);
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--soft-white);
}

/* Payout Action */
.payout-action {
    grid-column: span 2;
    max-width: 300px;
    margin: 0 auto;
}

/* Messages Section - UPDATED styling for notifications */
.messages-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    min-height: 200px;
}

.messages-icon {
    font-size: 50px;
    color: var(--slate-grey);
    margin-bottom: 20px;
    opacity: 0.5;
    text-align: center;
}

.messages-text {
    font-size: 16px;
    color: var(--slate-grey);
    line-height: 1.5;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--slate-grey);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 60px;
    color: var(--slate-grey);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: var(--slate-grey);
    line-height: 1.5;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 60px;
    color: var(--error-color);
    margin-bottom: 20px;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: 10px;
}

.error-message {
    color: var(--slate-grey);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retry-btn {
    background: var(--bantu-blue);
    color: white;
}

.retry-btn:hover {
    background: #3b9ce6;
    transform: translateY(-2px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--card-border);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 24px;
    color: var(--warm-gold);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--soft-white);
    flex: 1;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    margin-bottom: 25px;
}

.payout-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--warm-gold);
    text-align: center;
    margin: 20px 0;
}

.modal-note {
    font-size: 14px;
    color: var(--slate-grey);
    line-height: 1.5;
    margin-top: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.modal-btn.primary {
    background: var(--warm-gold);
    color: var(--deep-black);
}

.modal-btn.primary:hover {
    background: #f97316;
    transform: translateY(-2px);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Toast - Same as explore-screen.html */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--soft-white);
    font-weight: 500;
    max-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toast.success {
    background: rgba(16, 185, 129, 0.9);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.9);
}

.toast.info {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Navigation */
.global-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 18, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 100;
    border-top: 1px solid var(--card-border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--slate-grey);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 5px;
}

.nav-item:hover {
    color: var(--soft-white);
}

.nav-item.active {
    color: var(--warm-gold);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--bantu-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--warm-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        max-width: 100%;
    }
    
    .dashboard-hero {
        padding: 30px 20px;
    }
    
    .creator-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .creator-name {
        font-size: 24px;
    }
    
    .creator-avatar {
        width: 80px;
        height: 80px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .payout-action {
        grid-column: span 1;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .uploads-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
