/* ===================================
   COMPONENTS.CSS - WD-006 Template
   Buttons, Forms, Cards, Gallery
   =================================== */

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #5081A2;
    border-color: #5081A2;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ===== Form Controls ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(50, 55, 140, 0.1);
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* Quote card decoration */
.quote-card::before {
    background: url('/templates/wd-006/assets/img/flower-3.webp') no-repeat center center / contain;
}

/* ===== Debit Card ===== */
.debit-card {
    background: linear-gradient(135deg, rgba(50, 55, 140, 0.25), rgba(50, 55, 140, 0.15));
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    font-family: monospace;
    width: 100% !important;
    max-width: 320px;
    aspect-ratio: 1.75 / 1;
    padding: 1rem;
    text-align: left;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #333;
    position: relative;
    overflow: hidden;
}

.debit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    transform: rotate(30deg);
    pointer-events: none;
}

/* ===== Vintage Door Frame ===== */
.vintage-door-frame {
    overflow: visible !important;
}

.vintage-door-frame::before {
    top: -20px !important;
    left: -20px !important;
    width: calc(100% + 40px) !important;
    height: calc(100% + 40px) !important;
    z-index: 2;
}

/* ===== Hero Glass Frame ===== */
.hero-glass-frame {
    display: inline-flex;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hero-couple-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* ===== Gallery ===== */
.gallery-item {
    background-size: cover;
    background-position: center;
}

/* Lazy Loading Background */
.lazy-bg {
    background-color: #e5e7eb;
    transition: background-image 0.3s ease-in-out;
}

.lazy-bg.lazy-loaded {
    background-color: transparent;
}

/* ===== Thanks Gradient Footer ===== */
.thanks-gradient-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer-credit-svg {
    height: 24px;
    width: auto;
    opacity: 0.9;
}

/* ===== YouTube Player ===== */
#youtube-iframe-wrapper {
    overflow: hidden;
}

#youtube-iframe-wrapper #youtube-player {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
}

#youtube-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
}

#youtube-controls {
    pointer-events: auto;
}

/* ===== FSLightbox Fix ===== */
html.fslightbox-open {
    overflow-y: scroll !important;
}

html.fslightbox-open body {
    margin-right: 0 !important;
}

/* ===== Music Disk ===== */
.disk {
    background: url('/templates/wd-006/assets/img/disk_play.webp') no-repeat center center / cover;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    animation: spin 9s linear infinite paused;
    z-index: 1;
}

.disk.playing {
    animation-play-state: running;
}

.disk-shadow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    z-index: -1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Flower Wrappers ===== */
.flower-wrapper {
    position: absolute;
    z-index: 10;
    width: 250px !important;
}

.flower-wrapper-left {
    top: -20px;
    left: -100px;
    transform: rotate(25deg);
}

.flower-wrapper-right {
    top: 0px;
    right: -80px;
    transform: rotate(-25deg);
}

.flower {
    position: absolute;
    width: 300px;
    height: 300px;
    animation: sway 8s infinite ease-in-out;
    z-index: 1;
    transform-origin: bottom;
}

.flower-bottom-left {
    bottom: -100px;
    left: -120px;
}

.flower-bottom-right {
    bottom: -100px;
    right: -120px;
}

/* ===== Photo Container ===== */
.photo-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.photo-container img {
    position: relative;
    z-index: 1;
}

#bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ===== Vintage Door Frame (Full) ===== */
.vintage-door-frame {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 0 auto;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.vintage-door-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

/* ===== Google Map ===== */
.google-map {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
}

/* ===== Debit Card (Extended) ===== */
.bank-name {
    color: #30318B;
    margin-bottom: 0.5rem;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-design {
    position: relative;
    width: 70px;
    height: 50px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(113deg, rgb(213, 172, 63) 0%, rgb(255, 224, 136) 50%, rgb(193, 140, 1) 100%);
}

.card-design .horizontal-line,
.card-design .vertical-line {
    position: absolute;
    background-color: rgb(161, 119, 18);
    border-radius: 0.5rem;
}

.card-design .horizontal-line {
    height: 1px;
    left: 0;
    right: 0;
}

.card-design .horizontal-line.bottom {
    bottom: 25%;
}

.card-design .horizontal-line:not(.bottom) {
    top: 25%;
}

.card-design .vertical-line {
    width: 1px;
    top: 0;
    bottom: 0;
}

.card-design .vertical-line.left {
    left: 30%;
}

.card-design .vertical-line.right {
    right: 30%;
}

.bank-logo {
    width: 90px;
    height: 50px;
    border-radius: 0.5rem;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-number {
    color: #333 !important;
    font-size: 18px;
    font-weight: bold;
}

.account-owner {
    color: #333 !important;
    font-size: 14px;
    margin-top: 0.5rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 320px;
    margin: 0 auto;
}

.copy-btn .icon-check {
    display: none;
}

.copy-btn.copied .icon-check {
    display: inline-block;
}

.copy-btn.copied .copy-text {
    display: none;
}

/* ===== Countdown ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.countdown-item small {
    font-size: 0.8rem;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 400px;
    width: 90%;
    margin: auto;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-body {
    padding: 1rem;
    color: #333;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: right;
}

/* ===== Misc ===== */
.spinner {
    display: none;
}

h1 {
    font-size: 1.8rem !important;
}

h2 {
    font-size: 1.5rem !important;
}

.container-inv,
.container-cover,
.hero-section {
    min-width: 370px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.text-quote {
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
    color: #292929;
}

#section-gallery .img-responsive {
    transition: transform 0.3s ease;
}

#section-gallery .img-responsive:hover {
    transform: scale(1.05);
}