/* ==================== Additional Styles for New Features ==================== */

/* Dexscreener Embed */
.dexscreener-embed {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dexscreener-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Content Layout Update */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ==================== Gallery Library ==================== */
.gallery-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.gallery-zoom {
    background: var(--turquoise);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-zoom:hover {
    background: var(--coral);
    transform: scale(1.2);
}

/* ==================== Lightbox ==================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--coral);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

/* ==================== Lobster Catching Game ==================== */
.game-section {
    padding: var(--section-padding);
    background: rgba(13, 71, 161, 0.8);
    backdrop-filter: blur(10px);
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    color: var(--turquoise);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-family: 'Righteous', cursive;
    font-size: 48px;
    color: var(--coral);
    line-height: 1;
}

.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.3) 0%, rgba(13, 71, 161, 0.5) 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: crosshair;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-overlay h3 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.game-overlay p {
    color: var(--cream);
    font-size: 18px;
    margin-bottom: 30px;
}

.lobster {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    animation: lobsterFloat 2s ease-in-out infinite;
}

.lobster:hover {
    transform: scale(1.2);
}

.lobster.caught {
    animation: lobsterCatch 0.5s ease-out forwards;
}

@keyframes lobsterFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes lobsterCatch {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.catch-effect {
    position: absolute;
    color: var(--coral);
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    animation: scorePopup 1s ease-out forwards;
}

@keyframes scorePopup {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-50px) scale(1.5); opacity: 0; }
}

.game-over {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.game-over h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
}

.final-score {
    color: var(--turquoise);
    font-size: 32px;
    margin-bottom: 30px;
}

.final-score span {
    color: var(--coral);
    font-weight: bold;
    font-size: 48px;
}

.leaderboard {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.leaderboard h3 {
    color: var(--turquoise);
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 24px;
    font-weight: bold;
    color: var(--coral);
    min-width: 40px;
}

.leaderboard-rank.gold { color: #ffd700; }
.leaderboard-rank.silver { color: #c0c0c0; }
.leaderboard-rank.bronze { color: #cd7f32; }

.leaderboard-name {
    flex: 1;
    color: var(--white);
    font-weight: 600;
    margin-left: 15px;
}

.leaderboard-score {
    font-size: 20px;
    font-weight: bold;
    color: var(--turquoise);
}

.leaderboard-score::after {
    content: ' 🦞';
}

/* ==================== Responsive Game ==================== */
@media (max-width: 768px) {
    .game-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .game-area {
        height: 400px;
    }
    
    .lobster {
        width: 50px;
        height: 50px;
    }
    
    .game-overlay h3 {
        font-size: 28px;
    }
    
    .game-overlay p {
        font-size: 16px;
    }
    
    .game-over h2 {
        font-size: 36px;
    }
    
    .final-score {
        font-size: 24px;
    }
    
    .final-score span {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .game-area {
        height: 350px;
    }
    
    .lobster {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .leaderboard {
        padding: 20px;
    }
    
    .leaderboard-rank {
        font-size: 20px;
        min-width: 30px;
    }
    
    .leaderboard-score {
        font-size: 18px;
    }
}

/* ==================== Keep Other Styles ==================== */

/* ==================== Responsive Updates ==================== */
@media (max-width: 992px) {
    .rating-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dexscreener-embed {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dexscreener-embed {
        height: 450px;
    }
    
    .gallery-library {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .rating-form-container {
        padding: 30px 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-caption {
        bottom: 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-library {
        grid-template-columns: 1fr;
    }
    
    .dexscreener-embed {
        height: 400px;
    }
    
    .rating-number {
        font-size: 56px;
    }
    
    .stars-display {
        font-size: 24px;
    }
    
    .star-rating {
        font-size: 32px;
    }
    
    .rating-stats {
        padding: 25px;
    }
    
    .rating-bar-item {
        grid-template-columns: 40px 1fr 40px;
        gap: 10px;
        font-size: 14px;
    }
}
