/* Modern LGBT-Friendly Color Scheme */
:root {
    /* Rainbow colors */
    --rainbow-red: #E40303;
    --rainbow-orange: #FF8C00;
    --rainbow-yellow: #FFED00;
    --rainbow-green: #008026;
    --rainbow-blue: #004DFF;
    --rainbow-purple: #750787;
    
    /* Functional colors */
    --light-bg: #f8f9fa;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --image-bg: #f5f5f5;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
    --section-bg: #ffffff;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.5;
    color: var(--dark-text);
    background-color: var(--light-bg);
    padding-bottom: 2rem;
}

/* Rainbow Gradient Header */
.rainbow-header {
    background: linear-gradient(
        to right,
        var(--rainbow-red),
        var(--rainbow-orange),
        var(--rainbow-yellow),
        var(--rainbow-green),
        var(--rainbow-blue),
        var(--rainbow-purple)
    );
    color: white;
    padding: 0.5rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.header-content {
        display: flex;
        align-items: center;
        justify-content: center;
}

.header-content a {
    color: inherit; /* Makes the link color the same as the parent (white) */
    text-decoration: none; /* Removes the underline */
}

.header-icon {
    height: 64px; /* You might want a slightly larger icon now */
    width: auto;
    margin-right: 6px; /* Adjust space between icon and text */
}
.rainbow-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.rainbow-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Global Section Styling (used by multiple pages) */
.section {
    background-color: var(--section-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    padding: 1rem 1rem;
}

.section-title {
    color: var(--rainbow-purple);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(117, 7, 135, 0.1);
}

/* Rainbow Footer */
/* ===== Compact Horizontal Footer ===== */
.rainbow-footer {
    background: var(--light-bg); /* Light neutral background */
    color: var(--dark-text);
    padding: 1.5rem 1rem 0; /* Reduced padding */
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--rainbow-purple); /* Accent color */
}

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

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--rainbow-blue);
}

/* Contact Icons */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-methods a {
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-methods i {
    color: var(--rainbow-purple);
}

/* Rainbow Footer Bottom */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(
        to right,
        var(--rainbow-purple),
        var(--rainbow-blue),
        var(--rainbow-green),
        var(--rainbow-yellow),
        var(--rainbow-orange),
        var(--rainbow-red)
    );
    color: white;
    font-size: 0.85rem;
}

/* No Results Message (global utility class) */
.no-results {
    text-align: center;
    padding: 1.5rem;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rainbow-header h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-methods {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rainbow-header h1 {
        font-size: 1.3rem;
    }
    
    .rainbow-header p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Specific styling for contact methods on mobile */
    .contact-methods {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}