/* The Marmot Logs - Shared Styles */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary: #1e3a5f;
    --primary-dark: #154360;
    --secondary: #e67e22;
    --accent: #f4d03f;
    --ocean: #2c5f7c;
    --sand: #f5e6d3;
    --white: #ffffff;
    --text: #555555;
    --text-light: #888888;
    --border: #dddddd;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 50px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #4682B4 30%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ========================================
   OCEAN WAVES ANIMATION
   ======================================== */
.ocean {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    animation: wave 10s linear infinite;
}

.wave:nth-child(2) {
    animation: wave 15s linear infinite reverse;
    opacity: 0.5;
    bottom: -10px;
}

.wave:nth-child(3) {
    animation: wave 20s linear infinite;
    opacity: 0.3;
    bottom: -20px;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   FLOATING MARMOBACKGROUND
   ======================================== */
.floating-marmots {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floater {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(10px) rotate(5deg); }
    50% { transform: translateY(-10px) translateX(-10px) rotate(-5deg); }
    75% { transform: translateY(-30px) translateX(5px) rotate(3deg); }
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text);
    margin: 0 8px;
    transition: color 0.3s;
}

.lang-switcher a.active {
    color: var(--secondary);
}

.lang-switcher a:hover {
    color: var(--primary);
}

.lang-switcher span {
    color: var(--border);
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.container {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

/* ========================================
   LOGO SECTION
   ======================================== */
.logo-section {
    margin-bottom: 2rem;
}

.mascot-boat {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bob 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    color: var(--white);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--sand);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ========================================
   MESSAGE CARD
   ======================================== */
.message-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

.message-card h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.message-card p {
    color: var(--text);
    margin-bottom: 1rem;
}

/* ========================================
   CREW PREVIEW
   ======================================== */
.crew-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.crew-moji {
    font-size: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.crew-moji:hover {
    transform: scale(1.3) rotate(10deg);
}

/* ========================================
   COUNTDOWN
   ======================================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    min-width: 75px;
}

.countdown-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    display: block;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.3rem;
    display: block;
}

/* ========================================
   BOOKMARK SECTION
   ======================================== */
.bookmark-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.bookmark-hint {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.bookmark-hint strong {
    color: var(--secondary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    color: var(--white);
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ========================================
   MESSAGE / FEEDBACK
   ======================================== */
#bookmark-message {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}

#bookmark-message strong {
    color: var(--primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 600px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .mascot-boat {
        font-size: 3.5rem;
    }

    .message-card {
        padding: 1.8rem;
    }

    .message-card h2 {
        font-size: 1.3rem;
    }

    .crew-moji {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 65px;
        padding: 0.8rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 55px;
        padding: 0.6rem;
    }

    .crew-preview {
        gap: 0.6rem;
    }
}
