/* Shared header and footer styles for TechEventsNow */

/* Base reset and body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Placeholder backgrounds to prevent flash before JS injects components */
#site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 58px;
}

#site-footer {
    background: #2d3748;
    min-height: 180px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    position: relative;
}

header nav a:hover {
    opacity: 0.8;
}

header nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    color: #f7fafc;
    font-size: 1rem;
}

.footer-section p,
.footer-section li {
    color: #a0aec0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Mobile responsive — header */
@media (max-width: 768px) {
    header nav ul {
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    header nav a {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}
