/* ========================================
   MUSIC CONNECT - PREMIUM CUSTOM DESIGN
   Normal sizing - Like WhatsApp/Facebook
   ======================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* CSS Variables - Unique Color Palette */
:root {
    /* Primary - Warm Terracotta / Burnt Orange */
    --primary: #E86F4F;
    --primary-dark: #D45A3A;
    --primary-light: #F28B6B;
    --primary-glow: rgba(232, 111, 79, 0.2);
    
    /* Secondary - Deep Indigo */
    --secondary: #4F46E5;
    --secondary-dark: #4338CA;
    --secondary-light: #818CF8;
    
    /* Accent - Gold */
    --accent: #F59E0B;
    --accent-dark: #D97706;
    
    /* Neutral - Warm Dark */
    --bg-dark: #0D0D0F;
    --bg-darker: #08080A;
    --bg-card: #131316;
    --bg-elevated: #1A1A1F;
    --border: #2A2A30;
    --border-light: #3A3A42;
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    /* Success/Error/Warning */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(232, 111, 79, 0.3);
    
    /* Spacing - NORMAL (like WhatsApp) */
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Light Mode */
body.light-mode {
    --bg-dark: #F8F9FC;
    --bg-darker: #F1F3F8;
    --bg-card: #FFFFFF;
    --bg-elevated: #F8F9FC;
    --border: #E4E7EC;
    --border-light: #D1D5DB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography - NORMAL SIZE */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loader */
#loaders {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spin {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
}

/* Find Page Header Layout */
.find-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
}

.find-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.find-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* User Menu - NORMAL */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.user-menu:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.username {
    font-weight: 500;
    font-size: 14px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-width: 220px;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown a, .dropdown p {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.dropdown a:hover {
    color: var(--primary);
}

.dropdown hr {
    margin: var(--spacing-sm) 0;
    border-color: var(--border);
}

/* Notification Bell - NORMAL */
.notification-wrapper {
    position: relative;
}

.bell {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    padding: 8px;
    transition: transform 0.2s ease;
}

.bell:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.notification-dropdown h4 {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}
/* Notification Read/Unread Styles - Add to your CSS */

/* Notification Container */
#notificationList {
    padding: var(--spacing-sm);
}

/* Base notification item */
.notification-item {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

/* UNREAD notifications - Bold, highlighted, with indicator */
.notification-item.unread {
    background: var(--primary-glow);
    border-left: 3px solid var(--primary);
    position: relative;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.notification-item.unread p {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-item.unread small {
    color: var(--primary-light);
}

/* READ notifications - Subtle, faded */
.notification-item:not(.unread) {
    background: var(--bg-elevated);
    opacity: 0.85;
}

.notification-item:not(.unread) p {
    font-weight: 400;
    color: var(--text-secondary);
}

.notification-item:not(.unread) small {
    color: var(--text-muted);
}

/* Hover effect for both */
.notification-item:hover {
    background: var(--bg-elevated);
    transform: translateX(2px);
}

.notification-item.unread:hover {
    background: rgba(232, 111, 79, 0.25);
}

/* Timestamp styling */
.notification-item small {
    font-size: 11px;
    display: block;
    margin-top: 6px;
}

/* Optional: Add a subtle "NEW" badge for unread */
.notification-item.unread::after {
    content: 'NEW';
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 9px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* Dark mode adjustments */
body.light-mode .notification-item.unread {
    background: rgba(232, 111, 79, 0.1);
}

body.light-mode .notification-item.unread p {
    color: var(--primary-dark);
}

body.light-mode .notification-item:not(.unread) {
    background: #F1F5F9;
}
/* Navigation Actions - NORMAL */
.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.nav-actions .btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.nav-actions .btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Back link styling */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--primary-glow);
    transform: translateX(-3px);
}

/* Header left group */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-left h1 {
    margin: 0;
}

/* Buttons - NORMAL */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

/* Gig Cards - NORMAL */
.gigs {
    margin-bottom: var(--spacing-2xl);
}

.gig-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gig-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: height 0.3s ease;
}

.gig-card:hover {
    transform: translateX(4px);
    border-color: var(--border-light);
}

.gig-card:hover::before {
    height: 100%;
}

.gig-card.featured {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--primary);
}

.gig-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.gig-top h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.gig-date, .gig-location {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    margin: var(--spacing-sm) 0;
}

.status.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status.taken {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status.completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.status.expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* User Cards - NORMAL */
.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.user-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.user-top h3 {
    font-size: 1rem;
}

.rating {
    color: var(--accent);
    font-size: 13px;
    margin: var(--spacing-sm) 0;
}

/* Forms - NORMAL */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.input-group {
    margin-bottom: var(--spacing-lg);
}

.input, .select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.input:focus, .select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    right: var(--spacing-lg);
    top: var(--spacing-lg);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.contact-box {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.rating-input span {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0.3;
}

.rating-input span:hover {
    transform: scale(1.1);
}

/* Toast - IMPROVED DESIGN */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: white;
    animation: slideInRight 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    backdrop-filter: blur(8px);
}

.toast.success {
    background: linear-gradient(135deg, #10B981, #059669);
    border-left: 4px solid #34D399;
}

.toast.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-left: 4px solid #F87171;
}

.toast.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-left: 4px solid #60A5FA;
}

.toast.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-left: 4px solid #FBBF24;
}

/* Flash Messages - IMPROVED DESIGN */
.flash {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    animation: slideInRight 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    backdrop-filter: blur(8px);
    min-height: 20px;
    max-height: 50px;
}

.flash.success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-left: 4px solid #34D399;
}

.flash.error, .flash.danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-left: 4px solid #F87171;
}

.flash.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-left: 4px solid #FBBF24;
}

.flash.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border-left: 4px solid #60A5FA;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.pagination a {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer - FIXED */
.footer {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    margin-top: auto;
    width: 100%;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 var(--spacing-md);
    transition: color 0.2s ease;
    font-size: 13px;
}

.footer a:hover {
    color: var(--primary);
}

.footer p {
    margin-top: var(--spacing-md);
    font-size: 12px;
    color: var(--text-muted);
}

/* Search Section */
.gig-search {
    margin-bottom: var(--spacing-xl);
}

.gig-search form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-right {
        justify-content: space-between;
    }
    
    .gig-search form {
        grid-template-columns: 1fr;
    }
    
    .gig-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: var(--spacing-lg);
        width: 95%;
    }
    
    .find-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .find-header-left {
        justify-content: space-between;
    }
    
    .find-header-right {
        justify-content: flex-end;
    }
    
    .toast, .flash {
        min-width: 260px;
        max-width: 320px;
        right: 16px;
        top: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .gig-card, .user-card {
        padding: var(--spacing-md);
    }
    
    .toast, .flash {
        min-width: 240px;
        max-width: 280px;
        padding: 12px 16px;
        font-size: 13px;
    }
}