/* San Valentín - Main Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body, 'Lora', 'Georgia', serif);
    background: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 50%, #ffc0cb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: #2c2c2c;
}

/* Typography */
.newspaper-title {
    font-family: var(--font-romantic, 'Dancing Script', cursive);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    color: #4a0e0e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    letter-spacing: var(--letter-spacing-wide);
    text-align: center;
    line-height: var(--line-height-tight);
}

.open-instruction {
    text-align: center;
    font-size: var(--font-size-lg);
    color: #8b4789;
    margin-top: 20px;
    font-style: italic;
    font-family: var(--font-elegant);
    line-height: var(--line-height-normal);
}

/* Layout Components */
.initial-view {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}

.initial-view.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.main-content {
    display: none;
    opacity: 0;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.main-content.visible {
    display: block;
}

.section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Envelope Styles */
.envelope-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.envelope-container {
    position: relative;
    width: 320px;
    height: 200px;
    margin: 0 auto 40px;
}

.envelope {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.envelope-front {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-bottom: 100px solid #fad0c4;
    border-top: 100px solid transparent;
    top: 0;
    left: 0;
    border-radius: 10px;
    z-index: 3;
}

.envelope-flap {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 100px solid #ff6b9d;
    top: 0;
    left: 0;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    border-radius: 10px 10px 0 0;
}

.envelope-container.open .envelope-flap {
    transform: rotateX(180deg);
}

.letter {
    position: absolute;
    width: 280px;
    height: 160px;
    background: white;
    top: 20px;
    left: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.8s ease, top 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #e63946;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.envelope-container.open .letter {
    transform: translateY(-80px);
    top: -20px;
}

.hearts-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 6;
}

/* Buttons */
.open-button {
    background: linear-gradient(135deg, #ff6b9d, #ff9a9e);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: var(--font-size-xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    line-height: var(--line-height-normal);
}

.open-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.answer-button {
    padding: 25px 30px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #fff;
    border: 3px solid #ff6b9d;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: var(--line-height-normal);
}

.answer-button:hover {
    background: linear-gradient(135deg, #ff6b9d, #ff9a9e);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.answer-button::before {
    content: "✓ ";
    font-size: 24px;
}

.no-button {
    background: rgba(255, 240, 245, 0.9);
    border-color: #ffb3ba;
    color: #e63946;
}

.no-button::before {
    content: "";
}

/* Content Sections */
.chosen-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    color: #2c2c2c;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e63946;
    line-height: var(--line-height-tight);
}

.chosen-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.chosen-image {
    flex: 1;
    min-width: 250px;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.5);
    border: 3px dashed #d4a5a5;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    color: #8b6969;
    font-style: italic;
    text-align: center;
    padding: 20px;
    line-height: var(--line-height-normal);
}

.principal-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.chosen-text {
    flex: 1;
    min-width: 250px;
}

.chosen-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: #4a4a4a;
    font-style: italic;
    font-family: var(--font-body);
}

/* Tickets and Reasons */
.tickets-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ticket {
    background: rgba(255, 192, 203, 0.3);
    border: 2px dashed #8b6969;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: var(--font-size-base);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    color: #4a0e0e;
    line-height: var(--line-height-normal);
}

.reasons-title {
    text-align: center;
    margin-bottom: 30px;
}

.reasons-title h2 {
    font-size: var(--font-size-4xl);
    font-family: var(--font-romantic);
    font-weight: var(--font-weight-semibold);
    color: #e63946;
    line-height: var(--line-height-tight);
}

.reasons-title p {
    font-size: var(--font-size-2xl);
    font-family: var(--font-elegant);
    color: #2c2c2c;
    font-style: italic;
    line-height: var(--line-height-normal);
}

.reasons-list {
    list-style: none;
    padding: 0;
}

.reasons-list li {
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #4a4a4a;
    line-height: var(--line-height-relaxed);
}

.reasons-list li strong {
    color: #e63946;
    font-size: var(--font-size-2xl);
    font-family: var(--font-romantic);
    font-weight: var(--font-weight-bold);
    margin-right: 15px;
}

/* Signals Section */
.signals-title {
    text-align: center;
    margin-bottom: 30px;
}

.signals-title h3 {
    font-size: var(--font-size-xl);
    font-family: var(--font-body);
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 10px;
    line-height: var(--line-height-normal);
}

.signals-title h2 {
    font-size: var(--font-size-3xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    color: #e63946;
    line-height: var(--line-height-tight);
}

.signals-subtitle {
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 20px;
    line-height: var(--line-height-normal);
}

.signals-list {
    list-style: none;
    padding: 0;
}

.signals-list li {
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    line-height: var(--line-height-relaxed);
}

.signals-list li::before {
    content: "✱";
    color: #e63946;
    font-size: 24px;
    margin-right: 15px;
}

.forecast {
    background: rgba(255, 240, 245, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border-left: 5px solid #e63946;
}

.forecast h3 {
    color: #e63946;
    font-size: var(--font-size-xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-medium);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: var(--line-height-normal);
}

.forecast p {
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    line-height: var(--line-height-loose);
    color: #4a4a4a;
}

/* Final Question */
.final-question {
    text-align: center;
}

.final-question h2 {
    font-size: var(--font-size-3xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    color: #e63946;
    font-style: italic;
    margin-bottom: 20px;
    line-height: var(--line-height-tight);
}

.final-question p {
    font-size: var(--font-size-lg);
    font-family: var(--font-body);
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 40px;
    line-height: var(--line-height-relaxed);
}

.big-question {
    font-size: var(--font-size-5xl);
    font-family: var(--font-romantic);
    font-weight: var(--font-weight-semibold);
    margin: 30px 0;
    line-height: var(--line-height-tight);
}

.big-question span:first-child {
    color: #2c2c2c;
}

.big-question span:last-child {
    color: #e63946;
    font-style: italic;
}

/* Photo Gallery */
.photo-gallery {
    margin: 40px 0;
}

.gallery-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-family: var(--font-romantic);
    font-weight: var(--font-weight-medium);
    color: #e63946;
    margin-bottom: 30px;
    font-style: italic;
    line-height: var(--line-height-tight);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 3px dashed #d4a5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    color: #8b6969;
    font-style: italic;
    text-align: center;
    padding: 20px;
    line-height: var(--line-height-normal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Answer Section */
.answer-section {
    text-align: center;
}

.answer-section h3 {
    font-size: var(--font-size-3xl);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-medium);
    color: #2c2c2c;
    margin-bottom: 30px;
    line-height: var(--line-height-tight);
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Yes Button styling */
.answer-button.yes-button {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 50%, #f50057 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    padding: 18px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
    min-width: 280px;
    transition: all 0.3s ease;
}

.answer-button.yes-button:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

/* No-button (evasive) styling */
.answer-button.no-button {
    background: rgba(255, 240, 245, 0.95);
    color: #e63946;
    font-size: 1.1rem;
    padding: 18px 30px;
    border: 2px solid #ffb3ba;
    min-width: 200px;
    transition: all 0.2s ease;
    order: 2;
}

.answer-button.no-button:hover {
    background: rgba(255, 220, 230, 0.95);
}

/* Scroll-triggered final section highlight */
.answer-section.in-view {
    animation: sectionFocusIn 0.6s ease forwards;
}

@keyframes sectionFocusIn {
    0% {
        opacity: 0.9;
    }

    100% {
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    font-size: var(--font-size-4xl);
    font-family: var(--font-romantic);
    font-weight: var(--font-weight-semibold);
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: var(--line-height-tight);
}

.modal-content p {
    font-size: var(--font-size-xl);
    font-family: var(--font-body);
    color: #fff;
    line-height: var(--line-height-relaxed);
    margin-bottom: 30px;
}

.modal-hearts {
    font-size: 60px;
    margin: 20px 0;
}

.close-modal {
    background: #fff;
    color: #e63946;
    border: none;
    padding: 15px 40px;
    font-size: var(--font-size-lg);
    font-family: var(--font-elegant);
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: var(--line-height-normal);
}

.close-modal:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Background Hearts */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart-float {
    position: absolute;
    font-size: 30px;
    opacity: 0.15;
}