/* Root Variables */
:root {
    /* Colors */
    --primary: hsl(24, 94%, 53%);
    --primary-foreground: hsl(0, 0%, 100%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(224, 71%, 4%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(220, 9%, 46%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(224, 71%, 4%);
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --accent: hsl(220, 14%, 96%);
    --accent-foreground: hsl(224, 71%, 4%);
    --surface-elevated: hsl(0, 0%, 98%);
    
    /* Brand */
    --brand-gradient: linear-gradient(135deg, hsl(24, 94%, 53%), hsl(24, 94%, 45%));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsl(220, 43%, 11%, 0.05);
    --shadow-md: 0 4px 6px -1px hsl(220, 43%, 11%, 0.1), 0 2px 4px -1px hsl(220, 43%, 11%, 0.06);
    --shadow-lg: 0 10px 15px -3px hsl(220, 43%, 11%, 0.1), 0 4px 6px -2px hsl(220, 43%, 11%, 0.05);
    --shadow-brand: 0 10px 25px -5px hsl(24, 94%, 53%, 0.3);
    
    /* Spacing */
    --container-padding: 1rem;
    --border-radius: 0.75rem;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    height: 2.25rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    height: 2.75rem;
    font-size: 1rem;
}

.btn-default {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-default:hover {
    background-color: hsl(24, 94%, 48%);
}

.btn-outline {
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-gradient {
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    font-weight: 500;
}

.btn-gradient:hover {
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    border: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 2rem;
    width: 2rem;
    border-radius: var(--border-radius);
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-square {
    height: 1rem;
    width: 1rem;
    background-color: white;
    border-radius: 0.125rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-with-indicator {
    position: relative;
}

.nav-indicator {
    position: absolute;
    top: 0;
    right: -12px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--background);
}

.nav-actions-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
}

.notification-wrapper {
    position: relative;
}

.btn-icon-notification {
    position: relative;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    transition: color 0.15s ease;
}

.btn-icon-notification:hover {
    color: var(--primary);
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--background);
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 380px;
    max-height: 500px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface-elevated);
}

.notifications-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.mark-read-btn {
    font-size: 0.75rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.15s ease;
    position: relative;
}

.notification-item:hover {
    background-color: var(--accent);
}

.notification-item.unread {
    background-color: hsla(24, 94%, 53%, 0.05);
}

.notification-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    border-radius: 50%;
    color: var(--primary);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0 0 0.25rem 0;
    color: var(--foreground);
}

.notification-text strong {
    font-weight: 600;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.notification-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.notification-item:not(.unread) .notification-badge {
    display: none;
}

.notifications-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    background-color: var(--surface-elevated);
}

.view-all-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.btn-credits {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-credits:hover {
    background-color: var(--accent);
}

.credits-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 0 0 2px var(--background);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--foreground);
}

.mobile-menu-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
    display: inline-block;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 0%, var(--surface-elevated) 100%);
    padding: 5rem 0 8rem;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: var(--surface-elevated);
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.hero-badge .icon {
    color: var(--primary);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-image {
    position: relative;
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    border-radius: 1.5rem;
    filter: blur(3rem);
    opacity: 0.2;
}

.hero-img {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* Requests Section */
.requests-section {
    padding: 4rem 0;
    background-color: hsla(0, 0%, 98%, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--background);
}

.search-box {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--input);
    border-radius: var(--border-radius);
    background-color: var(--background);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(24, 94%, 53%, 0.2);
}

.select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--border-radius);
    background-color: var(--background);
    font-size: 0.875rem;
    min-width: 12rem;
}

.select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(24, 94%, 53%, 0.2);
}

.requests-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.time-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.time-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-group-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.time-group-divider {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.requests-grid {
    display: grid;
    gap: 1.5rem;
}

/* Request Card */
.request-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.request-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.card-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.request-card:hover .card-title {
    color: var(--primary);
}

.attachment-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: hsla(24, 94%, 53%, 0.1);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid hsla(24, 94%, 53%, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.card-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offers-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.offers-number {
    font-weight: 600;
    color: var(--foreground);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
}

.share-btn:hover {
    color: var(--foreground);
}

.offer-btn {
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    font-weight: 500;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-btn:hover {
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: var(--surface-elevated);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-description {
    color: var(--muted-foreground);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: color 0.15s ease;
}

.social-link:hover {
    color: var(--foreground);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-bottom-link:hover {
    color: var(--foreground);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-brand);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px -8px hsla(24, 94%, 53%, 0.4);
}

.fab-btn .icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-actions-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .filters {
        flex-direction: row;
        align-items: center;
    }
    
    .requests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .requests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
}