/* =====================================================
   EASTER EGGS - Hidden Clams & Treasures
   Clickable collectibles scattered throughout the site
   ===================================================== */

/* Clam Container */
.easter-clam {
    position: absolute;
    width: 50px;
    height: 40px;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.3s ease;
}

.easter-clam:hover {
    transform: scale(1.15);
}

.easter-clam.found {
    opacity: 0.4;
    pointer-events: none;
}

.clam-canvas {
    width: 50px;
    height: 40px;
    cursor: pointer;
}

/* Clam positions - scattered throughout sections */
.clam-hero {
    bottom: 150px;
    left: 100px;
}

.clam-experience {
    bottom: 80px;
    right: 60px;
}

.clam-projects {
    top: 100px;
    left: 40px;
}

.clam-articles {
    bottom: 100px;
    right: 50px;
}

.clam-skills {
    top: 80px;
    right: 50px;
}

.clam-contact {
    bottom: 100px;
    left: 60px;
}

/* Pearl reward popup */
.pearl-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(145deg, #1a2a3a, #2a3a4a);
    border: 3px solid #87CEEB;
    border-radius: 16px;
    padding: 30px 40px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(135, 206, 235, 0.3);
    max-width: 350px;
}

.pearl-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.pearl-popup h4 {
    font-size: 1rem !important;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.6 !important;
}

.pearl-popup p {
    font-size: 0.75rem !important;
    color: #B0E0E6;
    line-height: 2 !important;
    margin-bottom: 20px;
}

.pearl-popup .pearl-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF, #E8E8E8, #D4D4D4);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4),
                inset 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.pearl-popup .close-btn {
    background: #4A7C8C;
    color: #FFFFFF;
    border: 2px solid #87CEEB;
    padding: 10px 24px;
    font-size: 0.7rem !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.pearl-popup .close-btn:hover {
    background: #5A9CAC;
    transform: translateY(-2px);
}

/* Collection counter */
.collection-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(26, 42, 58, 0.9);
    border: 2px solid #87CEEB;
    border-radius: 8px;
    padding: 10px 15px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.collection-counter.show {
    opacity: 1;
    transform: translateY(0);
}

.collection-counter .pearl-mini {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF, #E8E8E8);
    border-radius: 50%;
}

.collection-counter span {
    font-size: 0.6rem !important;
    color: #B0E0E6;
}

/* Sparkle animation for undiscovered clams */
@keyframes clamSparkle {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
}

.easter-clam:not(.found) {
    animation: clamSparkle 3s ease-in-out infinite;
}

/* Hide on very small screens */
@media (max-width: 600px) {
    .easter-clam {
        display: none;
    }

    .collection-counter {
        display: none;
    }
}
