/* 
 * global.css - Locazee Design System
 * Consolidates layout, theme, and common components (Header, Footer, Tickers).
 */

:root {
    --primary-grey: #808080;
    --accent-yellow: #ffd700;
    --bg-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(128, 128, 128, 0.15);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Resets */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Unified Header */
header {
    background: var(--primary-grey);
    color: white;
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.header-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
}

.header-nav a:hover {
    color: var(--accent-yellow);
    opacity: 1;
}

/* Unified Footer */
footer {
    background: var(--primary-grey);
    color: white;
    padding: 2rem;
    margin-top: auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--accent-yellow);
}

.copyrights {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Common Components: Sestion Cards */
main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-grey);
}

/* Premium Buttons */
.btn-premium {
    background: var(--primary-grey);
    color: var(--accent-yellow);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Ticker Components (Time & Weather) */
.ticker-container {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.ticker-track { display: flex; }
.ticker-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 3rem;
    display: flex;
    align-items: center;
}

.time { color: var(--primary-grey); font-weight: 700; margin-left: 5px; }

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Responsive Table */
@media (max-width: 768px) {
    .header-footer-wrapper {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }
    .header-nav ul { gap: 1rem; }
    .footer-top { flex-direction: column; gap: 1rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 0.5rem; }
}
