/* Ocean-themed styles for bottle page */
body {
    background: radial-gradient(ellipse at bottom, #002945 0%, #000814 100%);
    background-attachment: fixed;
}

body::before {
    background: radial-gradient(circle at 20% 50%, rgba(0, 119, 182, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 150, 199, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}

/* Ocean bubbles */
.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 70%);
    border-radius: 50%;
    bottom: -50px;
    animation: floatBubble linear infinite;
    opacity: 0;
}

@keyframes floatBubble {
    0% {
        opacity: 0;
        bottom: -50px;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(30px) scale(1.1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        bottom: 110vh;
        transform: translateX(-20px) scale(0.8);
    }
}

/* Ocean-themed floating lights (jellyfish-like) */
.ocean-light {
    background: radial-gradient(circle, rgba(144, 224, 239, 0.8) 0%, rgba(0, 180, 216, 0.4) 40%, transparent 70%);
    box-shadow: 0 0 30px rgba(144, 224, 239, 0.5);
}

/* Ocean waves */
.ocean-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 5;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: rgba(0, 119, 182, 0.2);
    border-radius: 50% 50% 0 0;
}

.wave1 {
    animation: waveMotion 8s linear infinite;
    background: linear-gradient(180deg, rgba(0, 119, 182, 0.3) 0%, rgba(0, 119, 182, 0.1) 100%);
}

.wave2 {
    animation: waveMotion 12s linear infinite;
    animation-delay: -5s;
    background: linear-gradient(180deg, rgba(0, 150, 199, 0.25) 0%, rgba(0, 150, 199, 0.08) 100%);
    height: 120%;
}

.wave3 {
    animation: waveMotion 16s linear infinite;
    animation-delay: -8s;
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 180, 216, 0.05) 100%);
    height: 140%;
}

@keyframes waveMotion {
    0% {
        transform: translateX(0) translateY(10px);
    }
    50% {
        transform: translateX(-25%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Ocean-themed color adjustments */
.title {
    background: linear-gradient(45deg, #0077b6, #00b4d8, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.5);
}

.countdown-value {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 119, 182, 0.5);
}

.bottle-date {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 1.4em;
    opacity: 0.9;
}

.bottle-date p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.message-text {
    margin-top: 30px;
    font-size: 1.2em;
    color: rgba(144, 224, 239, 0.8);
    font-style: italic;
    letter-spacing: 1px;
}

.countdown-item:hover {
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

.unit-btn:hover {
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.3);
}

.unit-btn.active {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    box-shadow: 0 5px 25px rgba(0, 119, 182, 0.4);
}

.total-value {
    background: linear-gradient(135deg, #00b4d8 0%, #90e0ef 50%, #caf0f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.5);
}

.nav-link:hover {
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

/* Bottle Letter */
.bottle-letter {
    margin-top: 40px;
    margin-bottom: 30px;
}

.letter-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(144, 224, 239, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2),
                inset 0 0 20px rgba(144, 224, 239, 0.1);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.letter-content:hover {
    transform: rotate(0deg) scale(1.02);
}

.letter-title {
    font-size: 1.3em;
    color: rgba(144, 224, 239, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.letter-text {
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    font-family: 'Georgia', serif;
    text-shadow: 0 0 20px rgba(144, 224, 239, 0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ocean-waves {
        height: 80px;
    }
    
    .countdown-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .countdown-item {
        padding: 15px 8px;
    }
    
    .countdown-value {
        font-size: 1.8em;
    }
    
    .countdown-label {
        font-size: 0.7em;
    }
    
    .bottle-date {
        margin-bottom: 20px;
        font-size: 1.1em;
    }
    
    .message-text {
        font-size: 1em;
        padding: 0 15px;
    }
    
    .bottle-letter {
        margin-top: 25px;
        margin-bottom: 20px;
    }
    
    .letter-content {
        padding: 20px 15px;
        transform: rotate(-0.5deg);
    }
    
    .letter-title {
        font-size: 1.1em;
    }
    
    .letter-text {
        font-size: 1.3em;
    }
    
    .unit-toggles {
        margin-top: 20px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .unit-btn {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .total-time {
        margin-top: 20px;
        min-height: 80px;
    }
    
    .total-value {
        font-size: 2.2em;
    }
    
    .total-label {
        font-size: 1em;
    }
    
    .navigation {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .nav-link {
        padding: 14px 25px;
        font-size: 1em;
        display: block;
        max-width: 280px;
        margin: 0 auto;
    }
}