/* ============================================
   ShoreTimer - Common Styles
   Shared across all pages
   ============================================ */

/* CSS Variables */
:root {
    --coral: #FF6B6B;
    --coral-dark: #E85555;
    --teal: #26A69A;
    --teal-light: #B2DFDB;
    --navy: #2C3E50;
    --navy-light: #34495E;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --amber: #F59E0B;
    --purple: #8B5CF6;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --gradient-ocean: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 25%, #80DEEA 50%, #4DD0E1 75%, #26C6DA 100%);
    --gradient-sunset: linear-gradient(135deg, #FFF8F0 0%, #FFECB3 30%, #FFD54F 60%, #FF6B6B 100%);
    --gradient-hero: linear-gradient(180deg, #FFF8F0 0%, #E0F2F1 50%, #B2DFDB 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--navy);
    line-height: 1.7;
    background: var(--cream);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--coral);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav.scrolled .nav-links a {
    color: var(--navy);
}

.nav-links .btn {
    color: var(--white);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

.nav.scrolled .nav-links .btn {
    color: var(--white);
}

.nav-links .btn::after {
    display: none;
}

.nav-back {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.nav-back:hover {
    color: var(--coral);
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.language-current:hover {
    border-color: var(--teal);
    background: var(--gray-100);
}

.language-current .language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.language-current .language-code {
    font-weight: 700;
}

.language-current .chevron {
    transition: transform 0.2s ease;
}

.language-switcher.open .language-current .chevron {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-switcher.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s ease;
}

.language-dropdown li a:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.language-dropdown li a[aria-current="true"] {
    background: var(--teal-light);
    color: var(--teal);
}

.language-dropdown .language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.language-dropdown .language-code {
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 2rem;
}

.language-dropdown .language-name {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.language-dropdown li a:hover .language-name,
.language-dropdown li a[aria-current="true"] .language-name {
    color: inherit;
}

/* Locale Suggestion Banner */
.locale-banner {
    background: linear-gradient(135deg, var(--teal) 0%, #1E8A7E 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* When banner is visible, push everything down */
body.has-locale-banner {
    padding-top: 52px; /* Height of locale banner */
}

body.has-locale-banner .nav {
    top: 52px; /* Push nav below banner */
}

.locale-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.locale-banner-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.locale-banner-message {
    font-size: 0.95rem;
}

.locale-banner-message strong {
    font-weight: 700;
}

.locale-banner-actions {
    display: flex;
    gap: 0.75rem;
}

.locale-banner-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.locale-banner-switch {
    background: var(--white);
    color: var(--teal);
    text-decoration: none;
}

.locale-banner-switch:hover {
    background: var(--cream);
    color: var(--teal);
    transform: translateY(-1px);
}

.locale-banner-dismiss {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.locale-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
    .locale-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .locale-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-column h4 {
    font-weight: 800;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--coral);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Legacy footer-links (for simple footers like promo page) */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
}

.btn-primary:hover {
    background: #e85555;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Common Section Styles */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--navy);
}

.badge {
    background: var(--coral);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tips Box */
.tips-box {
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.1) 0%, rgba(38, 166, 154, 0.05) 100%);
    border-left: 4px solid var(--teal);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tips-box h4 {
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-box h4 svg {
    width: 20px;
    height: 20px;
}

.tips-box ul {
    list-style: none;
    color: var(--gray-600);
}

.tips-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips-box li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* Contact Cards */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-card.featured {
    background: var(--navy);
    color: var(--white);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-card.featured .contact-card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--coral);
}

.contact-card.featured .contact-card-icon svg {
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-card.featured h3 {
    color: var(--white);
}

.contact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.contact-card.featured p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-card .btn {
    padding: 0.75rem 1.5rem;
}

/* Responsive - Common */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
