/* 🌸💕 Wedding Theme - DC3545 Red + Navy Blue 💕🌸 */

/* === ROOT VARIABLES === */
:root {
    --primary-red: #dc3545;
    --dark-red: #a82835;
    --light-red: #f26674;
    --navy-blue: #0a3d5c;
    --dark-navy: #062839;
    --light-navy: #1a5f8a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
    --text-dark: #1a1a1a;
}

.text-primary {
    color: var(--primary-red) !important;
}
.text-light {
    color: var(--light-red) !important;
}

/* === BODY & MAIN BACKGROUND === */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    font-family: "system-ui", "Arial", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

@keyframes floatingHearts {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

/* === HEADINGS === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", "Georgia", serif;
    color: var(--primary-red);
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.2);
    position: relative;
    font-weight: 600;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

/* === SECTIONS === */
section {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 30px;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

section::before {
    content: "🌸";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(15deg);
}

section::after {
    content: "🌺";
    position: absolute;
    bottom: -30px;
    left: -30px;
    font-size: 120px;
    opacity: 0.08;
    transform: rotate(-20deg);
}

/* === BUTTONS === */
.btn,
button {
    background: linear-gradient(
        135deg,
        var(--primary-red) 0%,
        var(--dark-red) 100%
    );
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-family: "system-ui", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(183, 110, 121, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

/* === COUNTDOWN CLOCK - Red & Navy Theme === */
.clock {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 30px;
    border: 1px dashed var(--primary-red);
    position: relative;
    overflow: hidden;
}

.clock .box {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    margin: 10px;
    /* box-shadow: inset 0 2px 10px rgba(255, 0, 25, 0.1),
        0 5px 15px rgba(253, 0, 25, 0.15); */
    transition: all 0.3s ease;
    flex-shrink: 1 !important;
}

/* .clock .box:hover {
    transform: scale(1.08);
    box-shadow: inset 0 2px 10px rgba(255, 0, 25, 0.2),
        0 8px 25px rgba(255, 0, 25, 0.3);
} */

.clock .box span {
    font-family: "system-ui", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--light-red);
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.2);
}

.clock .box p {
    font-family: "system-ui", sans-serif;
    font-size: 32px;
    color: var(--dark-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}
.clock .box div {
    font-family: "system-ui", sans-serif;
    font-size: 36px;
    color: var(--primary-red);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.3);
}

/* === VIDEO GALLERY - Red Theme === */
.video-gallery {
    background: var(--light-gray);
    border-radius: 30px;
    padding: 50px 20px;
    position: relative;
}

.video-thumbnail {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    transition: all 0.4s ease;
    border: 4px solid var(--primary-red);
}

.video-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 192, 203, 0.3) 0%,
        rgba(212, 165, 212, 0.3) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.video-thumbnail:hover::before {
    opacity: 0.1;
}

.video-thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.35);
    border-color: var(--dark-red);
}

.play-icon-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 157, 0.9) 0%,
        rgba(255, 133, 161, 0.9) 100%
    );
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
}

.play-icon-overlay::before {
    content: "▶";
    color: white;
    font-size: 30px;
    margin-left: 5px;
}

/* === SIGNATURE AREA - Red & Navy Theme === */
#signatureCanvas {
    border: 3px dashed var(--primary-red);
    border-radius: 20px;
    background: var(--white);
    box-shadow: inset 0 2px 10px rgba(220, 53, 69, 0.1),
        0 5px 20px rgba(220, 53, 69, 0.15);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23dc3545"/></svg>'),
        auto;
}

/* Signature Items - Draggable */
.signature-item {
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.signature-item:hover {
    transform: scale(1.05);
    z-index: 10 !important;
}

.signature-item:active {
    cursor: grabbing !important;
}

/* Signature Buttons */
.Signature_BTN_xoa .ladi-button:hover,
.Signature_BTN_luu .ladi-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4) !important;
}

.Signature_BTN_xoa .ladi-button:active,
.Signature_BTN_luu .ladi-button:active {
    transform: translateY(-1px);
}

.signature-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.2);
    position: relative;
}

.signature-section::before {
    content: "✍️";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.3;
}

/* === CARDS & PANELS === */
.card {
    background: var(--white);
    border-radius: 25px;
    border: 2px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 192, 203, 0.1) 0%,
        transparent 70%
    );
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.25);
    border-color: var(--primary-red);
}

/* === LINKS === */
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary-red) 0%,
        var(--dark-red) 100%
    );
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--dark-red) 0%,
        var(--primary-red) 100%
    );
}

/* === DECORATIVE ELEMENTS === */
.romantic-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--soft-pink),
        transparent
    );
    margin: 40px 0;
    position: relative;
}

.romantic-divider::before {
    content: "💕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    font-size: 20px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    section {
        padding: 40px 20px;
        margin: 20px 0;
    }

    .clock .box span {
        font-size: 36px;
    }

    h1::after,
    h2::after {
        display: none;
    }
}

/* === ROMANTIC OVERLAY FOR IMAGES === */
img {
    border-radius: 15px;
    /* box-shadow: 0 5px 20px rgba(183, 110, 121, 0.2); */
    transition: all 0.4s ease;
}

img:hover {
    /* box-shadow: 0 10px 30px rgba(183, 110, 121, 0.4); */
    transform: scale(1.02);
}

/* === SWEET ACCENTS === */
.sweet-accent {
    position: relative;
    display: inline-block;
}

.sweet-accent::before,
.sweet-accent::after {
    content: "✨";
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: twinkle 2s infinite;
}

.sweet-accent::before {
    left: -30px;
    top: -10px;
}

.sweet-accent::after {
    right: -30px;
    bottom: -10px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* === LACE PATTERN BACKGROUND (Optional) === */
.lace-pattern {
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 192, 203, 0.1) 10px,
            rgba(255, 192, 203, 0.1) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(255, 192, 203, 0.1) 10px,
            rgba(255, 192, 203, 0.1) 20px
        );
}
