:root {
    --bg-dark: #0f0f13;
    --primary: #ff477e;
    --text-light: #fefefe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden; /* Prevent scrolling */
    touch-action: none; /* Better mobile touch handling */
}

#art-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through */
    transition: filter 2s ease-in-out;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 33vh);
    gap: 15px;
    padding: 15px;
    background: #0f0f13;
    opacity: 0;
    animation: fadeInBg 2s ease-in-out forwards;
}

@keyframes fadeInBg {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.art-piece {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.4; /* dim it slightly less for better visibility */
    transition: filter 2s ease, opacity 2s ease;
}

.profile-center-grid {
    opacity: 1; /* Profile should be fully opaque */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255, 71, 126, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.blurred .art-piece {
    filter: blur(15px) brightness(0.3);
    opacity: 0.1; /* fade out the background more so question pops */
}

#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allow clicks on buttons only */
}

.scene {
    position: absolute;
    width: 90%;
    max-width: 600px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    pointer-events: auto; /* Enable clicks inside visible scenes */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.emoji {
    -webkit-text-fill-color: initial;
}

.fade-text {
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    100% { transform: scale(1.02); opacity: 1; }
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    background: var(--glass-bg);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(1px);
}

.yes-btn {
    background: linear-gradient(135deg, #ff477e, #ff7b9c);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.yes-btn:hover {
    background: linear-gradient(135deg, #ff7b9c, #ff477e);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.6);
}

#no-btn {
    transition: all 0.2s ease;
    z-index: 100;
}

/* Calendar Styles */
.calendar-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.cal-nav {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5; /* disabled look since it's locked */
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.05);
}

.cal-day:not(.empty) {
    border: 1px solid transparent;
}

.cal-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cal-day.disabled:hover {
    background: rgba(255,0,0,0.1);
}

.cal-day.today {
    background: linear-gradient(135deg, #ff477e, #ff7b9c);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255,71,126,0.5);
    cursor: pointer;
    opacity: 1;
}

.cal-day.today:hover {
    transform: scale(1.1);
}

.cal-day.empty {
    background: transparent;
    cursor: default;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 71, 126, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(255,71,126,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    text-align: center;
    width: max-content;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Venue Input */
#venue-input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transition: opacity 1s ease;
}

#venue-input-container.visible {
    opacity: 1;
}

#venue-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    outline: none;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s ease;
}

#venue-input:focus {
    border-color: var(--primary);
}

#venue-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Responsive Fixes */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .button-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; padding: 15px; }
    .cal-day { font-size: 0.9rem; }
    .hide-mobile { display: none; }
    #art-background { 
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: repeat(5, 25vh); /* Mobile will wrap into 5 rows */
    }
}
