/* Aquarium Specific Styles */
.aquarium-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(180deg, 
        rgba(0, 100, 150, 0.3) 0%,
        rgba(0, 150, 200, 0.4) 30%,
        rgba(0, 120, 180, 0.5) 70%,
        rgba(0, 80, 120, 0.6) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 150, 200, 0.3),
        inset 0 0 50px rgba(0, 100, 150, 0.2);
    border: 2px solid rgba(0, 200, 255, 0.3);
}

#aquarium-canvas {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    border-radius: 13px;
}

.aquarium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 13px;
}

/* Water surface effect */
.aquarium-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%);
    animation: waterSurface 3s ease-in-out infinite;
}

/* Glass reflection effect */
.aquarium-overlay::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 15%;
    height: 60%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    border-radius: 50px;
    transform: skew(-10deg);
    opacity: 0.6;
}

@keyframes waterSurface {
    0%, 100% { 
        transform: translateX(-10px);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(10px);
        opacity: 0.6;
    }
}

.aquarium-info {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Aquarium lighting effects */
.aquarium-container.daylight {
    background: linear-gradient(180deg, 
        rgba(135, 206, 250, 0.3) 0%,
        rgba(70, 130, 180, 0.4) 30%,
        rgba(30, 144, 255, 0.5) 70%,
        rgba(0, 100, 150, 0.6) 100%);
}

.aquarium-container.sunset {
    background: linear-gradient(180deg, 
        rgba(255, 140, 0, 0.3) 0%,
        rgba(255, 69, 0, 0.4) 30%,
        rgba(220, 20, 60, 0.5) 70%,
        rgba(139, 0, 139, 0.6) 100%);
}

.aquarium-container.deep-sea {
    background: linear-gradient(180deg, 
        rgba(25, 25, 112, 0.3) 0%,
        rgba(0, 0, 139, 0.4) 30%,
        rgba(72, 61, 139, 0.5) 70%,
        rgba(75, 0, 130, 0.6) 100%);
}

.aquarium-container.night {
    background: linear-gradient(180deg, 
        rgba(25, 25, 112, 0.2) 0%,
        rgba(0, 0, 80, 0.3) 30%,
        rgba(0, 0, 60, 0.4) 70%,
        rgba(0, 0, 40, 0.5) 100%);
}

/* Bubble effects */
.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: bubbleRise linear infinite;
    pointer-events: none;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

/* Caustics effect overlay */
.caustics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: caustics 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 13px;
}

@keyframes caustics {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.5;
    }
    66% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.4;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .aquarium-container {
        max-width: 100%;
        margin: 0 10px;
    }
    
    #aquarium-canvas {
        height: 300px;
    }
    
    .aquarium-info {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    #aquarium-canvas {
        height: 250px;
    }
    
    .aquarium-info {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .aquarium-overlay::before,
    .caustics-overlay,
    .bubble {
        animation: none;
    }
}

/* High performance mode for older devices */
.aquarium-container.low-performance .caustics-overlay {
    display: none;
}

.aquarium-container.low-performance .aquarium-overlay::before {
    animation-duration: 6s;
}

