/* ============================================
   WEDDING WEBSITE - CUSTOM STYLES
   ============================================ */

/* ===== SNOWFALL ANIMATION ===== */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.snowfall-flake {
    position: absolute;
    top: -100px;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 200px)) translateX(var(--drift, 50px)) rotate(360deg);
        opacity: 0;
    }
}

/* Tạo biến thể cho animation tự nhiên hơn */
.snowfall-flake:nth-child(2n) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.snowfall-flake:nth-child(3n) {
    animation-delay: -4s;
    animation-duration: 12s;
}

.snowfall-flake:nth-child(4n) {
    animation-delay: -6s;
    animation-duration: 10s;
}

.snowfall-flake:nth-child(5n) {
    animation-delay: -8s;
    animation-duration: 15s;
}

.snowfall-flake:nth-child(6n) {
    animation-delay: -1s;
    animation-duration: 9s;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .snowfall-flake {
        animation-duration: 6s !important;
    }
}

/* ===== SNOWFALL ANIMATION SYSTEM ===== */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.snowfall-flake {
    position: fixed;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
    animation: snowfallDrop 10s linear infinite;
}

/* Snowfall animation */
@keyframes snowfallDrop {
    0% {
        transform: translateY(-150px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 150px)) translateX(var(--drift, 0px)) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced visual effects */
.snowfall-flake {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* Performance optimizations */
.snowfall-container,
.snowfall-flake {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .snowfall-flake {
        animation-duration: 6s !important;
    }
}

/* ===== ICON STYLES ===== */
.fa-heart:before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url("../images/7aa88a269f39195eb25da2bb198f0aa9.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* ===== MINICOLORS PLUGIN STYLES ===== */
.minicolors {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.minicolors-focus {
    z-index: 2;
}

.minicolors.minicolors-theme-default .minicolors-input {
    margin: 0;
    margin-right: 3px;
    border: 1px solid #ababab;
    font: 14px sans-serif;
    width: 65px;
    height: 16px;
    border-radius: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    padding: 2px;
    margin-right: -1px;
}

.minicolors-theme-default.minicolors .minicolors-input {
    vertical-align: middle;
    outline: 0;
}

.minicolors-theme-default.minicolors-swatch-left .minicolors-input {
    margin-left: -1px;
    margin-right: auto;
}

.minicolors-theme-default.minicolors-focus .minicolors-input,
.minicolors-theme-default.minicolors-focus .minicolors-swatch {
    border-color: #999;
}

.minicolors-hidden {
    position: absolute;
    left: -9999em;
}

.minicolors-swatch {
    position: relative;
    width: 20px;
    height: 20px;
    text-align: left;
    background: #ccc;
    border: solid 1px #ababab;
    vertical-align: middle;
    display: inline-block;
}

.minicolors-swatch SPAN {
    position: relative;
    width: 100%;
    height: 100%;
    background: 0 0;
    box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.minicolors-panel {
    position: absolute;
    top: 26px;
    left: 0;
    width: 173px;
    height: 152px;
    background: #fff;
    border: solid 1px #ccc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.minicolors-position-top .minicolors-panel {
    top: -156px;
}

.minicolors-position-left .minicolors-panel {
    left: -83px;
}

.minicolors-position-left.minicolors-with-opacity .minicolors-panel {
    left: -104px;
}

.minicolors-with-opacity .minicolors-panel {
    width: 194px;
}

.minicolors .minicolors-grid {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 150px;
    height: 150px;
    background: linear-gradient(to right, #fff, #f00);
    cursor: crosshair;
}

.minicolors .minicolors-grid-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: 0 0;
}

.minicolors-slider-saturation .minicolors-grid {
    background-position: -420px 0;
}

.minicolors-slider-saturation .minicolors-grid-inner {
    background: linear-gradient(to bottom, transparent, #000);
}

.minicolors-slider-brightness .minicolors-grid {
    background-position: -570px 0;
}

.minicolors-slider-brightness .minicolors-grid-inner {
    background: #000;
}

.minicolors-slider-wheel .minicolors-grid {
    background-position: -720px 0;
}

.minicolors-opacity-slider,
.minicolors-slider {
    position: absolute;
    top: 1px;
    left: 152px;
    width: 20px;
    height: 150px;
    background: linear-gradient(to bottom, #fff, #000);
    cursor: crosshair;
}

.minicolors-slider-saturation .minicolors-slider {
    background-position: -60px 0;
}

.minicolors-slider-brightness .minicolors-slider {
    background-position: -20px 0;
}

.minicolors-slider-wheel .minicolors-slider {
    background-position: -20px 0;
}

.minicolors-opacity-slider {
    left: 173px;
    background-position: -40px 0;
    display: none;
}

.minicolors-with-opacity .minicolors-opacity-slider {
    display: block;
}

.minicolors-grid .minicolors-picker {
    position: absolute;
    top: 70px;
    left: 70px;
    width: 10px;
    height: 10px;
    border: solid 1px #000;
    border-radius: 10px;
    margin-top: -6px;
    margin-left: -6px;
    background: 0 0;
}

.minicolors-grid .minicolors-picker SPAN {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 6px;
    border: solid 2px #fff;
}

.minicolors-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
    border: solid 1px #000;
    margin-top: -2px;
}

.minicolors-inline .minicolors-input,
.minicolors-inline .minicolors-swatch {
    display: none;
}

.minicolors-inline .minicolors-panel {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
}

/* Bootstrap Theme for Minicolors */
.minicolors-theme-bootstrap .minicolors-input {
    padding: 4px 6px;
    padding-left: 30px;
    background-color: #fff;
    border: 1px solid #ababab;
    border-radius: 3px;
    color: #ababab;
    font-family: Lato, sans-serif;
    font-size: 14px;
    height: 27px;
    width: 149px;
    line-height: 19px;
    margin: 0;
}

.minicolors-theme-bootstrap.minicolors-focus .minicolors-input {
    border-color: #74777c;
    box-shadow: none;
    outline: 0;
}

.minicolors-theme-bootstrap .minicolors-swatch {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
}

.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-input {
    padding-left: 6px;
    padding-right: 30px;
}

.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-swatch {
    left: auto;
    right: 4px;
}

.minicolors-theme-bootstrap .minicolors-panel {
    top: 28px;
    z-index: 3;
}

.minicolors-theme-bootstrap.minicolors-position-top .minicolors-panel {
    top: -154px;
}

.minicolors-theme-bootstrap.minicolors-position-left .minicolors-panel {
    left: -63px;
}

.minicolors-theme-bootstrap.minicolors-position-left.minicolors-with-opacity .minicolors-panel {
    left: -84px;
}

/* ===== TEMPLATE SETTINGS PANEL ===== */
#template-settings {
    position: fixed;
    width: 185px;
    top: 85px;
    left: -188px;
    background-color: #f7f8fa;
    z-index: 2000;
    padding: 12px 10px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-bottom-right-radius: 3px;
    border-bottom-right-radius: 3px;
    -webkit-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}

#template-settings > i {
    position: absolute;
    top: 0;
    right: -36px;
    cursor: pointer;
    background-color: #f7f8fa;
    text-align: center;
    line-height: 36px;
    width: 36px;
    height: 36px;
    font-size: 20pt;
    -webkit-border-top-right-radius: 3px;
    -moz-border-top-right-radius: 3px;
    border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-bottom-right-radius: 3px;
    border-bottom-right-radius: 3px;
    -webkit-box-shadow: 2px 1px 2px 0 rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 2px 1px 2px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 2px 1px 2px 0 rgba(0, 0, 0, 0.3);
}

#template-settings h4 {
    color: #73777b;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14pt;
}

#template-settings input,
#template-settings select,
.settings-pattern {
    margin-bottom: 20px;
}

#template-settings input {
    width: 149px;
}

#template-settings input#settings-rtl {
    width: 15px;
    height: 15px;
}

#template-settings .form-check {
    margin-bottom: 20px;
}

#template-settings .form-check label {
    padding-left: 5px;
}

#template-settings select {
    width: 150px;
    height: 28px;
    padding: 4px 0 0 5px;
    border: 1px solid #ababab;
    font-size: 9pt;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#template-settings > div {
    font-size: 9pt;
}

#template-settings.form-style .checkbox {
    padding-left: 22px;
}

/* ===== RSVP MODAL STYLES ===== */
.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label:hover {
    background-color: #e9ecef;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #667eea;
}

/* Responsive for RSVP Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }
}

.element .image:hover .hover-info .content .text-limit-3 {
    display: block !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

/* Hide "Xem thêm" button on hover with higher specificity */
.element .image:hover .hover-info .content .button-see {
    display: none !important;
    visibility: hidden !important;
}

/* Smooth transition for text expansion */
.hover-info .content .text-limit-3 {
    transition: all 0.3s ease-in-out;
}

.element .image .hover-info .content {
    transition: all 0.3s ease-in-out;
}

/* Additional styling for better readability */
.element .image:hover .hover-info .content {
    padding: 25px !important;
    border-radius: 10px !important;
}