/* CSS Variables - Rose Pink Theme */
:root {
    --background: hsl(0, 0%, 3%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(0, 0%, 6%);
    --primary: hsl(346, 77%, 65%);
    --primary-foreground: hsl(0, 0%, 100%);
    --muted-foreground: hsl(0, 0%, 60%);
    --accent: hsl(346, 50%, 20%);
    --border: hsl(346, 20%, 15%);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Effects */
.background-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-orb-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: hsl(346, 77%, 65%, 0.05);
}

.bg-orb-2 {
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: hsl(346, 50%, 20%, 0.05);
}

.bg-orb-3 {
    top: 50%;
    left: 0;
    width: 400px;
    height: 400px;
    background: hsl(346, 77%, 65%, 0.03);
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: hsl(346, 77%, 65%, 0.1);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.heart-1 {
    top: 10%;
    left: 10%;
    width: 16px;
    height: 16px;
    animation-delay: 0s;
}

.heart-2 {
    top: 20%;
    right: 15%;
    width: 12px;
    height: 12px;
    animation-delay: 0.5s;
}

.heart-3 {
    top: 60%;
    left: 5%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
}

.heart-4 {
    top: 70%;
    right: 10%;
    width: 16px;
    height: 16px;
    animation-delay: 1.5s;
}

.heart-5 {
    top: 40%;
    right: 5%;
    width: 12px;
    height: 12px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 6rem 1rem;
    }
}

.counter-wrapper {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-line {
    height: 1px;
    width: 4rem;
}

@media (min-width: 768px) {
    .divider-line {
        width: 6rem;
    }
}

.divider-line.left {
    background: linear-gradient(to right, transparent, hsl(346, 77%, 65%, 0.5));
}

.divider-line.right {
    background: linear-gradient(to left, transparent, hsl(346, 77%, 65%, 0.5));
}

.hero-heart {
    width: 32px;
    height: 32px;
    color: var(--primary);
    fill: hsl(346, 77%, 65%, 0.3);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--foreground);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .title {
        font-size: 4.5rem;
    }
}

.names {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.15em;
}

@media (min-width: 768px) {
    .names {
        font-size: 1.875rem;
    }
}

.wedding-date {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* Time Counter Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.time-value-wrapper {
    position: relative;
}

.time-glow {
    position: absolute;
    inset: 0;
    background: hsl(346, 77%, 65%, 0.1);
    filter: blur(40px);
    border-radius: 50%;
    transform: scale(1.5);
    transition: background 0.5s ease;
}

.time-unit:hover .time-glow {
    background: hsl(346, 77%, 65%, 0.2);
}

.time-value {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary);
    text-shadow: 
        0 0 20px hsl(346, 77%, 65%, 0.4),
        0 0 40px hsl(346, 77%, 65%, 0.2),
        0 0 60px hsl(346, 77%, 65%, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .time-value {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .time-value {
        font-size: 6rem;
    }
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: hsl(0, 0%, 60%, 0.8);
    font-weight: 300;
}

@media (min-width: 768px) {
    .time-label {
        font-size: 0.875rem;
    }
}

/* Love Message */
.love-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.message-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.small-divider {
    height: 1px;
    width: 3rem;
    background: hsl(346, 77%, 65%, 0.3);
}

.small-heart {
    width: 16px;
    height: 16px;
    color: hsl(346, 77%, 65%, 0.5);
    fill: hsl(346, 77%, 65%, 0.2);
}

.quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: hsl(0, 0%, 95%, 0.8);
    font-weight: 300;
    font-style: italic;
}

@media (min-width: 768px) {
    .quote {
        font-size: 1.5rem;
    }
}

/* Summary Card */
.summary-card {
    padding: 2rem;
    background: hsl(0, 0%, 6%, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    border: 1px solid hsl(346, 77%, 65%, 0.1);
}

.summary-title {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .summary-value {
        font-size: 1.875rem;
    }
}

.summary-label {
    font-size: 0.75rem;
    color: hsl(0, 0%, 60%, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 0;
    color: hsl(0, 0%, 60%, 0.5);
    font-size: 0.875rem;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-heart {
    width: 16px;
    height: 16px;
    color: var(--primary);
    fill: var(--primary);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
