/*
 * JJ Tata Wedding - Elements & Decorative Styles
 * Special components, ornaments, and Christmas-themed elements
 */

/* ========================================
   Decorative Borders & Dividers
======================================== */

.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.ornamental-divider::before,
.ornamental-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.ornamental-divider i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

/* Christmas Ornaments */
.christmas-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-accent), var(--color-primary));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(0, 0, 0, 0.3);
}

.christmas-ornament::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 2px;
}

/* Holly Leaves */
.holly-decoration {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.holly-leaf {
    width: 20px;
    height: 12px;
    background: var(--color-green);
    border-radius: 50% 0;
    transform: rotate(-45deg);
}

.holly-berry {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ========================================
   Christmas Lights Effect
======================================== */

.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
}

.light-bulb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.light-bulb:nth-child(1) {
    background: var(--color-accent);
    animation-delay: 0s;
}

.light-bulb:nth-child(2) {
    background: var(--color-gold);
    animation-delay: 0.4s;
}

.light-bulb:nth-child(3) {
    background: var(--color-green);
    animation-delay: 0.8s;
}

.light-bulb:nth-child(4) {
    background: var(--color-accent);
    animation-delay: 1.2s;
}

.light-bulb:nth-child(5) {
    background: var(--color-gold);
    animation-delay: 1.6s;
}

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

/* ========================================
   Snowflake Decorations
======================================== */

.snowflake-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: snowflakeSpin 10s linear infinite;
    pointer-events: none;
}

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

.snowflake-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 8s;
}

.snowflake-decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.snowflake-decoration:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-duration: 10s;
}

.snowflake-decoration:nth-child(4) {
    bottom: 30%;
    right: 10%;
    animation-duration: 15s;
    animation-direction: reverse;
}

/* ========================================
   Heart Elements
======================================== */

.heart-decoration {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-block;
}

.heart-decoration::before,
.heart-decoration::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 20px 20px 0 0;
}

.heart-decoration::before {
    left: 10px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-decoration::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    animation: floatHeart 10s ease-in infinite;
    opacity: 0;
}

@keyframes floatHeart {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(100px) rotate(180deg);
    }
}

/* ========================================
   Sparkle Effects
======================================== */

.sparkle-container {
    position: relative;
    display: inline-block;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold-light);
    border-radius: 50%;
    animation: sparkleAnimation 3s ease-in-out infinite;
}

@keyframes sparkleAnimation {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle:nth-child(1) {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 0;
    left: 0;
    animation-delay: 1s;
}

.sparkle:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

.sparkle:nth-child(4) {
    bottom: 0;
    left: 0;
    animation-delay: 3s;
}

/* ========================================
   Ribbon Elements
======================================== */

.ribbon {
    position: relative;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 2rem;
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.ribbon::before {
    left: -20px;
    border-width: 0 0 40px 20px;
    border-color: transparent transparent var(--color-primary) transparent;
}

.ribbon::after {
    right: -20px;
    border-width: 40px 20px 0 0;
    border-color: var(--color-primary) transparent transparent transparent;
}

/* ========================================
   Frosted Glass Effect
======================================== */

.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.frosted-glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Text Effects
======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                 0 0 40px rgba(212, 175, 55, 0.4),
                 0 0 60px rgba(212, 175, 55, 0.2);
}

.text-outlined {
    -webkit-text-stroke: 2px var(--color-gold);
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Badges & Labels
======================================== */

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-gold);
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
}

.badge-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-dark);
}

/* ========================================
   Quote Blocks
======================================== */

.quote-block {
    position: relative;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-gold);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
}

.quote-author {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-style: normal;
    text-align: right;
    color: var(--color-gold);
}

/* ========================================
   Cards with Shadow Effects
======================================== */

.card-elegant {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elegant:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-green));
    color: var(--color-white);
}

.card-body {
    padding: 2rem;
}

/* ========================================
   Progress Bars
======================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   Icons with Background
======================================== */

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: rotate(360deg) scale(1.1);
}

.icon-square {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

/* ========================================
   Separator Lines
======================================== */

.separator {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 2rem auto;
}

.separator-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.separator-with-icon::before,
.separator-with-icon::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.separator-with-icon i {
    font-size: 1.2rem;
    color: var(--color-gold);
}

/* ========================================
   Tooltips
======================================== */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   Utility Classes
======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ========================================
   Responsive Utilities
======================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .christmas-ornament {
        width: 30px;
        height: 30px;
    }

    .snowflake-decoration {
        font-size: 1rem;
    }

    .ribbon {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .quote-block {
        padding: 2rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}