/* Duck Gallery Specific Styles */

.gallery-hero {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 50%, #006400 100%);
    padding: 40px 0;
}

/* Admin Mode Styles */
.admin-mode .gallery-hero {
    background: linear-gradient(135deg, #FF6347 0%, #DC143C 50%, #B22222 100%);
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.admin-logout-btn {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,0,0,0.3);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.nav-button {
    background: linear-gradient(135deg, #FF6347, #FFD700);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.nav-button.game-btn {
    background: linear-gradient(135deg, #4682B4, #191970);
    color: white;
    animation: gameNavPulse 3s ease-in-out infinite alternate;
}

@keyframes gameNavPulse {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 4px 15px rgba(70,130,180,0.4), 0 0 10px rgba(70,130,180,0.3); }
}

.nav-button.game-btn:hover {
    background: linear-gradient(135deg, #5a9bd4, #2e3192);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.reset-btn {
    background: linear-gradient(135deg, #DC143C, #B22222) !important;
}

/* Progress Bar */
.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 5px;
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    height: 30px;
    border-radius: 20px;
    width: 0%;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Duck Gallery */
.duck-gallery {
    padding: 60px 0;
}

.duck-gallery h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FF6347;
    text-align: center;
    margin-bottom: 20px;
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ducks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.duck-card {
    background: linear-gradient(135deg, #F0F8FF, #E6F3FF);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.duck-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.duck-card.found {
    background: linear-gradient(135deg, #98FB98, #90EE90);
    transform: scale(1.02);
}

.duck-card.found::before {
    content: '✅';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    z-index: 3;
}

/* Duck Image */
.duck-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.duck-card:hover .duck-image {
    transform: rotate(10deg) scale(1.1);
}

.duck-card.found .duck-image {
    background: linear-gradient(135deg, #32CD32, #228B22);
    animation: bounce 1s ease-in-out;
}

/* Duck Image - Real Photos */
.duck-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.emoji-fallback {
    font-size: 4rem;
}

/* Locked Duck Cards (Non-Admin) */
.duck-card.locked {
    opacity: 0.8;
    position: relative;
}

.duck-card.locked:hover {
    transform: translateY(-5px) !important;
    cursor: not-allowed;
}

.lock-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.duck-card.locked input[type="checkbox"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.duck-card.locked .checkbox-label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Admin Mode Duck Cards */
.admin-mode .duck-card {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.admin-mode .duck-card:hover {
    border-color: #FFD700;
}

.admin-mode .duck-card.found {
    border-color: #32CD32;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Duck Info */
.duck-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: #4682B4;
    margin-bottom: 10px;
}

.duck-card.found .duck-name {
    color: #006400;
}

.duck-funfact {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

.duck-difficulty {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.difficulty-easy {
    background: #90EE90;
    color: #006400;
}

.difficulty-medium {
    background: #FFD700;
    color: #B8860B;
}

.difficulty-hard {
    background: #FF6347;
    color: #8B0000;
}

.difficulty-expert {
    background: #9370DB;
    color: white;
}

/* Checkbox */
.duck-checkbox {
    position: relative;
    display: inline-block;
}

.duck-checkbox input[type="checkbox"] {
    width: 25px;
    height: 25px;
    cursor: pointer;
    transform: scale(1.5);
    margin: 0;
}

.checkbox-label {
    margin-left: 10px;
    font-weight: bold;
    color: #4682B4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.duck-card.found .checkbox-label {
    color: #006400;
}

/* Finder name styling */
.checkbox-label {
    font-size: 0.95rem;
    line-height: 1.3;
}

.duck-card.found .checkbox-label {
    font-weight: 600;
}

/* Special styling for "yet to be found" */
.duck-card.locked .checkbox-label {
    font-style: italic;
    color: #888;
}

/* Celebration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-content {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: celebrationBounce 0.8s ease;
}

@keyframes celebrationBounce {
    0% { transform: scale(0.3) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.celebration-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.celebration-content p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.celebration-ducks {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.celebrating-duck {
    font-size: 3rem;
    animation: celebrationFloat 2s ease-in-out infinite;
}

.celebrating-duck:nth-child(2) { animation-delay: 0.2s; }
.celebrating-duck:nth-child(3) { animation-delay: 0.4s; }
.celebrating-duck:nth-child(4) { animation-delay: 0.6s; }
.celebrating-duck:nth-child(5) { animation-delay: 0.8s; }

@keyframes celebrationFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(10deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

/* Sharing Section */
.sharing-section {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    padding: 50px 0;
    margin-top: 40px;
}

.sharing-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.sharing-section p {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.share-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.share-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
    max-width: 400px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 10px 30px rgba(255,215,0,0.4), 0 0 20px rgba(255,215,0,0.3); }
}

.share-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255,215,0,0.4);
    text-decoration: none;
    color: #8B0000;
}

.share-button.secondary {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
}

.share-button.secondary:hover {
    box-shadow: 0 15px 40px rgba(70,130,180,0.4);
    color: white;
}

.sharing-section .email-highlight {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-email-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.copy-email-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    font-weight: bold;
    max-width: 300px;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

.share-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.share-instructions h3 {
    font-family: 'Fredoka One', cursive;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.share-instructions ul {
    list-style: none;
    padding: 0;
}

.share-instructions li {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ducks-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .duck-card {
        padding: 20px;
    }
    
    .duck-image {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .gallery-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-controls {
        justify-content: center;
        margin-top: 10px;
    }
    
    .progress-bar {
        max-width: 300px;
    }
    
    .celebration-content {
        padding: 30px;
        margin: 20px;
    }
    
    .celebration-content h2 {
        font-size: 2rem;
    }
    
    .celebrating-duck {
        font-size: 2rem;
    }
    
    .share-button {
        font-size: 1.2rem;
        padding: 15px 30px;
        max-width: 300px;
    }
    
    .share-instructions {
        padding: 20px;
        margin: 0 20px;
    }
    
    .copy-feedback {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ducks-grid {
        grid-template-columns: 1fr;
    }
    
    .duck-card {
        padding: 15px;
    }
    
    .duck-name {
        font-size: 1.2rem;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .nav-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}