/**
 * Rainbow.at - Modern & Clean Design System
 * Primary Colors: Yellow #F6DF7E & Blue #6c8bc3
 */

:root {
    --color-primary-yellow: #F6DF7E;
    --color-primary-yellow-hover: #ecd36c;
    --color-primary-yellow-light: #fefcf1;
    --color-primary-blue: #6c8bc3;
    --color-primary-blue-hover: #5876af;
    --color-primary-blue-dark: #37538c;
    --color-primary-blue-light: #f0f4fa;

    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e1;

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;

    --color-badge-gay: #3b82f6;
    --color-badge-lesbian: #ec4899;
    --color-badge-all: #8b5cf6;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary-blue-dark);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
    color: var(--color-primary-blue-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-primary-yellow);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: var(--color-primary-blue);
    color: #ffffff;
    padding: 4px 0;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #ffffff;
    margin-left: 14px;
    opacity: 0.9;
}

.top-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.main-header {
    padding: 14px 0;
}

.main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-primary-blue-dark);
    display: flex;
    align-items: center;
}

.brand-logo-text span {
    color: #d97706; /* warm gold accent */
}

.brand-badge {
    background: var(--color-primary-yellow);
    color: #1e293b;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-main);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background-color: var(--color-primary-blue-light);
    color: var(--color-primary-blue-dark);
}

.nav-link.active {
    background-color: var(--color-primary-yellow);
    color: #1e293b;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 22px;
    color: var(--color-text-main);
}

/* ==========================================================================
   Superbanner / Ad Placements
   ========================================================================== */

.header-ad-section {
    background: #edf2f7;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.banner-wrapper {
    margin: 0 auto;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.banner-superbanner .banner-inner {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-skyscraper .banner-inner {
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content-ad {
    margin: 24px 0;
    padding: 16px;
    background: var(--color-primary-blue-light);
    border: 1px dashed var(--color-primary-blue);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Page Layout & Grid System
   ========================================================================== */

.page-wrapper {
    padding: 24px 0 48px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Hero & Section Headings
   ========================================================================== */

.hero-banner {
    background: linear-gradient(135deg, var(--color-primary-blue-light) 0%, var(--color-primary-yellow-light) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.hero-content h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary-blue-dark);
    margin-bottom: 6px;
}

.hero-content p {
    color: var(--color-text-muted);
    font-size: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary-blue);
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary-blue-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--color-primary-yellow);
    border-radius: 2px;
}

/* ==========================================================================
   Cards & Feeds (News / Infopool)
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-blue);
}

.card-img-wrap {
    height: 160px;
    overflow: hidden;
    background-color: #e2e8f0;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--color-primary-blue-dark);
}

.card-text {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
}

/* ==========================================================================
   Badges, Buttons & Filters
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-gay {
    background: #dbeafe;
    color: #1e40af;
}

.badge-lesbian {
    background: #fce7f3;
    color: #9d174d;
}

.badge-all {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-category {
    background: var(--color-primary-yellow);
    color: #78350f;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-blue-hover);
    color: #ffffff;
}

.btn-yellow {
    background-color: var(--color-primary-yellow);
    color: #1e293b;
}

.btn-yellow:hover {
    background-color: var(--color-primary-yellow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border-dark);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-primary-blue);
}

.filter-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: var(--color-surface-hover);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--color-primary-blue);
    color: #ffffff;
    border-color: var(--color-primary-blue);
}

/* ==========================================================================
   Events & Directory List Items
   ========================================================================== */

.event-list, .address-list, .links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.event-item, .address-item, .link-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.event-item:hover, .address-item:hover, .link-item:hover {
    border-color: var(--color-primary-blue);
    box-shadow: var(--shadow-md);
}

.item-main {
    flex-grow: 1;
}

.item-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-primary-blue-dark);
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.item-desc {
    font-size: 14px;
    color: var(--color-text-main);
    line-height: 1.5;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-blue-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary-yellow);
}

.widget-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-links a {
    display: block;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-size: 13.5px;
}

.widget-links a:hover {
    background-color: var(--color-primary-blue-light);
    color: var(--color-primary-blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 3px solid var(--color-primary-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-primary-yellow);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar-column {
        order: 2;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 12px 16px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}
