/* assets/css/style.css */
:root {
    --bg-primary: #1a0b1c; /* Deep dark purple/burgundy */
    --bg-secondary: #2d142c;
    --accent-pink: #d17b88;
    --accent-rose: #a54657;
    --text-main: #fdf5f6; /* Warm cream */
    --text-muted: #e0c8ce;
    --glass-bg: rgba(45, 20, 44, 0.4);
    --glass-border: rgba(253, 245, 246, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Georgia', serif; /* Elegant fallback, consider Google Fonts like Playfair Display or Lora */
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* Background Animation */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
    width: 100%;
}

.section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    opacity: 1;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    width: 100%;
}

/* Typography */
h1, h2 {
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-pink);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: var(--accent-pink);
    box-shadow: 0 0 15px var(--accent-pink);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-rose), var(--accent-pink));
    border: none;
    box-shadow: 0 4px 15px rgba(165, 70, 87, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-rose));
    box-shadow: 0 6px 20px rgba(209, 123, 136, 0.6);
}

/* Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover, .option-btn.selected {
    background: rgba(209, 123, 136, 0.2);
    border-color: var(--accent-pink);
    transform: translateX(5px);
}

/* Forms */
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    outline: none;
}

textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px rgba(209, 123, 136, 0.3);
}

/* Memories */
.memory-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.memory-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-pink);
}

.memory-item h4 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-date {
    font-size: 0.8rem;
    color: var(--accent-pink);
}

/* Love Meter */
.meter-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 30px auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 2s ease-out;
}

.percentage {
    fill: var(--text-main);
    font-family: inherit;
    font-size: 8px;
    text-anchor: middle;
}

.heart-pulse {
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Audio Toggle */
#audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

/* Footer Privacy */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

footer a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
}

footer a:hover {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--accent-pink);
}

/* Responsive */
@media (max-width: 430px) {
    .glass-card {
        padding: 20px;
    }
    h1 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Heart Map */
.heart-map {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}
.map-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.map-row:last-child {
    margin-bottom: 0;
}
.map-row span:first-child {
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: var(--accent-pink);
}
