/* surpriz.im - Reusable Components CSS */

/* Premium Gift Intro Overlay - Ultra Modern 3D Design */
.gift-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #3d2052 0%, #1a0a2e 50%, #0d051a 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
    overflow: hidden;
}

/* Animated Background Particles */
.gift-intro-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 192, 203, 0.4), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 192, 203, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(3px 3px at 160px 120px, rgba(255, 215, 0, 0.4), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.gift-intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.gift-box-container {
    position: relative;
    width: 220px;
    height: 220px;
    perspective: 1200px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-box-container:hover {
    transform: scale(1.08);
}

/* Glow effect behind box */
.gift-box-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.4) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.gift-box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: box-float 4s ease-in-out infinite;
}

@keyframes box-float {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translateY(-15px) rotateY(8deg) rotateX(3deg);
    }

    50% {
        transform: translateY(-25px) rotateY(0deg) rotateX(-3deg);
    }

    75% {
        transform: translateY(-15px) rotateY(-8deg) rotateX(3deg);
    }
}

/* Premium Gift Box Faces */
.gift-box .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(145deg, #ff4081 0%, #e91e63 50%, #c2185b 100%);
    border: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Glossy overlay effect */
.gift-box .face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.gift-box .face.front {
    transform: translateZ(100px);
    background: linear-gradient(145deg, #ff6090 0%, #e91e63 40%, #ad1457 100%);
}

.gift-box .face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.gift-box .face.right {
    transform: rotateY(90deg) translateZ(100px);
    background: linear-gradient(145deg, #e91e63 0%, #c2185b 100%);
}

.gift-box .face.left {
    transform: rotateY(-90deg) translateZ(100px);
    background: linear-gradient(145deg, #f06292 0%, #e91e63 100%);
}

.gift-box .face.top {
    transform: rotateX(90deg) translateZ(100px);
    background: linear-gradient(145deg, #ff80ab 0%, #ff4081 50%, #e91e63 100%);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.gift-box .face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background: linear-gradient(145deg, #880e4f 0%, #ad1457 100%);
}

/* Premium Metallic Ribbon */
.ribbon-v {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: calc(100% + 10px);
    background: linear-gradient(90deg,
            #b8860b 0%,
            #ffd700 25%,
            #fff8dc 50%,
            #ffd700 75%,
            #b8860b 100%);
    z-index: 10;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.ribbon-h {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -5px;
    width: calc(100% + 10px);
    height: 30px;
    background: linear-gradient(180deg,
            #b8860b 0%,
            #ffd700 25%,
            #fff8dc 50%,
            #ffd700 75%,
            #b8860b 100%);
    z-index: 10;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Premium Gift Text */
.gift-text {
    margin-top: 60px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow:
        0 0 20px rgba(233, 30, 99, 0.8),
        0 0 40px rgba(233, 30, 99, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
    animation: text-glow 2s ease-in-out infinite;
    text-align: center;
    padding: 0 20px;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow:
            0 0 20px rgba(233, 30, 99, 0.8),
            0 0 40px rgba(233, 30, 99, 0.4),
            0 4px 10px rgba(0, 0, 0, 0.3);
    }

    50% {
        text-shadow:
            0 0 30px rgba(255, 64, 129, 1),
            0 0 60px rgba(255, 64, 129, 0.6),
            0 0 80px rgba(255, 64, 129, 0.3),
            0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Premium Open Button */
.open-btn {
    margin-top: 35px;
    padding: 18px 55px;
    background: linear-gradient(135deg, #ffd700 0%, #ffbb00 50%, #f0a500 100%);
    border: none;
    border-radius: 60px;
    color: #1a0a1e;
    font-weight: 800;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.open-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 70%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.open-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(255, 215, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Opening Animation */
.gift-intro-overlay.opening .gift-box-container {
    animation: box-open 1.2s forwards;
}

@keyframes box-open {
    0% {
        transform: scale(1) rotateY(0);
    }

    30% {
        transform: scale(1.3) rotateY(180deg);
    }

    60% {
        transform: scale(1.5) rotateY(360deg);
    }

    100% {
        transform: scale(0) rotateY(540deg);
        opacity: 0;
    }
}

/* Confetti burst effect */
.gift-intro-overlay.opening::after {
    content: '🎉✨💕🎊💖🌟💝';
    position: absolute;
    font-size: 3rem;
    animation: confetti-burst 1.2s forwards;
    letter-spacing: 20px;
}

@keyframes confetti-burst {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(2);
    }

    100% {
        opacity: 0;
        transform: scale(3) translateY(-100px);
    }
}

/* Digital Certificate */
.certificate-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 15px solid #d4af37;
    position: relative;
    color: #333;
    font-family: 'Playfair Display', serif;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.certificate-inner {
    border: 2px solid #d4af37;
    padding: 30px;
}

.certificate-header {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #d4af37;
}

.certificate-title {
    font-size: 3rem;
    margin: 20px 0;
    font-family: 'Dancing Script', cursive;
}

.certificate-to {
    font-size: 2rem;
    border-bottom: 2px solid #333;
    display: inline-block;
    margin: 20px 0;
    padding: 0 30px;
}

.certificate-seal {
    width: 100px;
    height: 100px;
    background: #d4af37;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Love Counter */
.love-counter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.counter-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    min-width: 80px;
}

.counter-value {
    font-size: 2rem;
    font-weight: bold;
    color: #f48fb1;
    display: block;
}

.counter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Interactive Coupons */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.coupon-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 3px dashed #ff4081;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 35px rgba(255, 64, 129, 0.2);
}

.coupon-card::before,
.coupon-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #1a0a1e;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.coupon-card::before {
    left: -25px;
}

.coupon-card::after {
    right: -25px;
}

.coupon-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.coupon-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.coupon-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.coupon-btn {
    background: linear-gradient(135deg, #ff4081 0%, #e91e63 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.coupon-card.used {
    filter: grayscale(1);
    opacity: 0.7;
    pointer-events: none;
}

.coupon-card.used .coupon-btn {
    background: #ccc;
}

/* Night tema için kuponlar */
body.theme-night .coupon-card {
    background: #181830;
    border-color: rgba(108, 123, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-night .coupon-card::before,
body.theme-night .coupon-card::after {
    background: #0d0d1a;
}

body.theme-night .coupon-card h3 {
    color: #f0f0f8;
}

body.theme-night .coupon-card p {
    color: #a0a0c0;
}

body.theme-night .coupon-btn {
    background: linear-gradient(135deg, #6c7bff 0%, #9f7aea 100%);
}

body.theme-night .coupon-btn:hover {
    transform: scale(1.05);
}

body.theme-night .coupon-card.used {
    opacity: 0.6;
}

body.theme-night .coupon-card.used .coupon-btn {
    background: #2a2a4a;
    color: #a0a0c0;
}


/* Premium Toast */
.premium-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(26, 10, 30, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 100000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 64, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    pointer-events: none;
}

.premium-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Modern Love Counter */
.love-counter-modern {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.love-counter-title {
    font-size: 1.1rem;
    color: #ff4081;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.love-counter-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.l-item {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
}

.l-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.love-counter-footer {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Peace Button */
.peace-btn-container {
    text-align: center;
    margin: 50px 0;
}

.peace-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    border-radius: 100px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.peace-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 184, 148, 0.6);
}

.peace-btn.clicked {
    pointer-events: none;
    background: #ccc;
    box-shadow: none;
    transform: scale(0.95);
}

/* History On This Day Card */
.history-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.history-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 20px;
}

.history-item {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    text-align: left;
}

.history-year {
    font-weight: 800;
    color: #fbbf24;
    min-width: 60px;
}

/* Weather Story Effect */
body.weather-rainy {
    background: linear-gradient(180deg, #1e272e 0%, #2f3640 100%) !important;
}

body.weather-sunny {
    background: linear-gradient(180deg, #48cae4 0%, #90e0ef 100%) !important;
}

.weather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    transition: opacity 2s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .certificate-container {
        padding: 15px;
        border-width: 8px;
    }

    .certificate-title {
        font-size: 2rem;
    }

    .love-counter {
        gap: 8px;
    }

    .counter-item {
        padding: 10px;
        min-width: 60px;
    }

    .counter-value {
        font-size: 1.4rem;
    }
}