/* Font and base styles */
@font-face {
    font-family: "Geist";
    src: url("https://assets.codepen.io/605876/GeistVF.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --size: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: hsl(0 0% 2%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Animated dot pattern background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: conic-gradient(from 180deg at 50% 70%,hsla(0,0%,15%,1) 0deg,#8a6a1a 72.0000010728836deg,#8a2a2a 144.0000021457672deg,#4a5a69 216.00000858306885deg,#2d7a5a 288.0000042915344deg,hsla(0,0%,15%,1) 1turn);
    mask:
        radial-gradient(circle at 50% 50%, white 2px, transparent 2.5px) 50% 50% / var(--size) var(--size),
        url("https://assets.codepen.io/605876/noise-mask.png") 256px 50% / 256px 256px;
    mask-composite: intersect;
    animation: flicker 20s infinite linear;
    opacity: 0.6;
}

@keyframes flicker {
    to {
        mask-position: 50% 50%, 0 50%;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
}

/* Event Section */
.event-section {
    text-align: center;
    margin-bottom: 80px;
}

.event-details {
    position: relative;
}

.event-details h1 {
    margin-bottom: 20px;
    text-align: center;
}

.event-details h1 span {
    position: relative;
    display: inline-block;
    color: #cf1b1b;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-details h1 span::before {
    content: attr(data-text);
    position: absolute;
    color: transparent;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 1) 2px,
        rgba(255, 255, 255, 1) 4px
    );
    -webkit-background-clip: text;
    background-clip: text;
    top: 8px;
    left: 8px;
    z-index: -1;
    animation: shiftBefore 3s ease-in-out infinite alternate;
}

.event-details h1 span::after {
    content: attr(data-text);
    position: absolute;
    color: transparent;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 1) 2px,
        rgba(255, 255, 255, 1) 4px
    );
    -webkit-background-clip: text;
    background-clip: text;
    top: -8px;
    left: -8px;
    animation: shiftAfter 3s ease-in-out infinite alternate;
}

@keyframes shiftBefore {
    0% {
        top: 8px;
        left: 8px;
    }
    100% {
        top: 0px;
        left: 0px;
    }
}

@keyframes shiftAfter {
    0% {
        top: -8px;
        left: -8px;
    }
    100% {
        top: 0px;
        left: 0px;
    }
}

.event-details p {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #cccccc;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

/* Payment Methods */
.payment-methods {
    max-width: 800px;
    margin: 0 auto;
}

.payment-methods h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.payment-methods h3.ascii-art {
    font-family: 'Courier New', monospace;
    font-size: 0.4rem;
    line-height: 1.2;
    color: #ffffff;
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
    padding: 10px 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.payment-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.payment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.payment-service {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.payment-detail {
    font-size: 0.8rem;
    color: #cccccc;
    font-weight: 400;
    word-break: break-all;
}

.confirmation-counter {
    margin: 40px 0;
}

.budget-goal {
    margin: 40px 0;
    text-align: center;
}

.goal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #cccccc;
}

.goal-label {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.goal-progress {
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ascii-progress-bar {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    line-height: 1;
}

.ascii-progress-bar.overage {
    color: #4CAF50;
}

.counter-number {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.counter-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.countdown {
    margin: 40px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-unit span {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-unit label {
    font-size: 0.8rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Guest Section */
.guest-section {
    margin-top: 80px;
}

.guest-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Guest Items */
.guest-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInGuest 0.5s ease forwards;
}

.guest-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.guest-item:last-child {
    border-bottom: none;
}

@keyframes slideInGuest {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
}

.guest-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.validation-dot.validated {
    background-color: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

.validation-dot.not-validated {
    background-color: #f44336;
    box-shadow: 0 0 4px rgba(244, 67, 54, 0.5);
}

.confirmation-time {
    font-size: 0.85rem;
    color: #cccccc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.guest-contribution {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px;
}

.contribution-label {
    font-size: 0.9rem;
    color: #888888;
    font-weight: 400;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contribution-text {
    font-size: 1rem;
    color: #cccccc;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Add Guest Form */
.add-guest-form {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.add-guest-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
    transition: all 0.2s ease;
}

.add-guest-form input::placeholder {
    color: #888888;
}

.add-guest-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 5px 0;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #4caf50;
    border-color: #4caf50;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.contribution-options {
    margin-bottom: 15px;
}

.add-button-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.other-input {
    margin-bottom: 15px;
    width: 100%;
}

.other-input input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.other-input input::placeholder {
    color: #888888;
}

.other-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.other-input input:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    color: #666666;
    cursor: not-allowed;
}

.other-input input:disabled::placeholder {
    color: #444444;
}

.add-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 12px 24px;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-btn:active {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

/* Guest List */
.guest-list {
    margin-top: 20px;
}

/* Mobile Help Button */
.mobile-help-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2147483647 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateZ(0) !important;
    will-change: transform;
    isolation: isolate !important;
}

.mobile-help-btn:hover {
    background: #ffffff;
    transform: translateZ(0) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-help-btn .help-icon {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: absolute;
}

.mobile-help-btn.open .help-icon {
    transform: rotate(45deg);
}

/* Mobile Side Panel */
.mobile-side-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-side-panel.open {
    right: 0;
}

.panel-content {
    padding: 60px 20px 20px;
}

.panel-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-item {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
    color: #cccccc;
}

.detail-item strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Admin Form Styles */
.admin-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.admin-form {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.admin-form h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 500;
}

.admin-form p {
    color: #cccccc;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.admin-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: border-color 0.2s ease;
}

.admin-form input::placeholder {
    color: #888888;
}

.admin-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.admin-buttons button {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #ffffff;
}

#admin-submit:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

#admin-cancel:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* Admin Checkbox Styles */
.admin-checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
}

.admin-checkbox-container input[type="checkbox"] {
    display: none;
}

.admin-checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.admin-checkbox-container input[type="checkbox"]:checked + .admin-checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.admin-checkbox-container input[type="checkbox"]:checked + .admin-checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.admin-label {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Admin Checkboxes Container */
.admin-checkboxes {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Admin Controls */
.admin-controls {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.admin-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Admin Guest Controls */
.admin-guest-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.edit-btn, .delete-btn {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #ffffff;
}

.edit-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.delete-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .event-details h1 {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        gap: 20px;
    }
    
    .time-unit span {
        font-size: 2rem;
    }
    
    .guest-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .guest-contribution {
        align-items: flex-start;
    }
    
    .add-guest-form {
        padding: 20px;
    }
    
    /* Show mobile help button on mobile */
    .mobile-help-btn {
        display: flex;
    }
}

/* Hero CTA button */
.hero-btn {
    display: inline-block;
    margin: 20px auto 0;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}

.hero-btn:active {
    transform: translateY(0);
}

@keyframes heroPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 22px rgba(0,0,0,0.28);
        background: rgba(255, 255, 255, 0.92);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        box-shadow: 0 14px 30px rgba(0,0,0,0.34);
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Photos marquee (scoped to photos page)
   Uses slower scroll than the codepen sample */
.photo-marquee-container,
#slider-container {
    position: relative;
    z-index: 2;
    max-width: 100vw;
    margin: 32px auto 0;
    overflow: hidden;
}

#slider-container, #slider-container-2, #slider-container-3 {
    height: 404px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* make full-bleed to the left edge */
    margin-right: -50vw; /* maintain full width accounting for parent centering */
}

.slider {
    position: absolute;
    display: flex;
    flex-flow: row nowrap;
    will-change: transform;
    transform: translateZ(0); /* promote to its own layer for smoother animation */
}

.slider-instant { transition: none; }
.slider-animate { margin-left: 0; }
.slider-extra { display: flex; flex-flow: row nowrap; }
.slider-last { visibility: visible; }
.slider span { margin-right: 30px; }
.slider .slider-extra { margin-right: 0; }
.slider img {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    #slider-container, #slider-container-2, #slider-container-3 {
        height: 320px;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    .slider img { max-width: 280px; max-height: 280px; }
}
