/* Reset and Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Lighter grey background */
    color: #333;
    padding-bottom: 80px; /* More space for potential fixed footer/nav */
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* Header Section */
.promo-header {
    /* Approximate gradient/color from mockup */
    background: linear-gradient(to bottom, #fdeff2, #fce5ea);
    padding: 20px 15px 15px 15px;
    margin-bottom: 0; /* Remove bottom margin */
    border-radius: 0 0 20px 20px; /* More rounded corners */
    text-align: center;
    position: relative; /* For potential sticker positioning */
}

.promo-header h1 {
    font-size: 1.6em; /* Slightly smaller */
    font-weight: 600;
    color: #1c1e21; /* Darker text */
    margin-bottom: 15px; /* Space below title */
}

/* Placeholder for Emojis/Image */
.promo-header::before {
    content: '🌴 🦭 🏯'; /* Simple emoji placeholder */
    display: block;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.destination {
    font-size: 1.5em;
    font-weight: 600;
    color: #1c1e21;
}

/* Time Slots Section */
.time-slots {
    background-color: #f0f2f5; /* Match body background */
    box-shadow: none;
    padding: 15px 15px 5px 15px; /* Adjust padding */
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.time-slots h2 {
    font-size: 0.85em; /* Smaller label */
    color: #606770; /* Greyish text */
    margin-bottom: 8px;
    text-align: left;
    font-weight: 600;
}

.slot-tabs {
    display: flex;
    justify-content: flex-start; /* Align tabs left */
    gap: 8px;
    margin-bottom: 10px;
}

.slot-tab {
    padding: 6px 14px;
    border: 1px solid #ced0d4;
    background-color: #fff; /* White background */
    border-radius: 16px; /* More rounded */
    font-size: 0.9em;
    font-weight: 600;
    color: #007bff; /* Blue text */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.slot-tab.active {
    background-color: #e7f3ff; /* Light blue background */
    color: #007bff; /* Blue text */
    border-color: #007bff; /* Blue border */
}

.slot-tab:hover:not(.active) {
    background-color: #f5f6f7; /* Light hover */
}

/* Style for past slots */
.slot-tab.past-slot {
    background-color: #e9ecef; /* Grey background */
    color: #adb5bd; /* Lighter grey text */
    border-color: #dee2e6; /* Grey border */
    /* cursor: not-allowed; */ /* REMOVED: Keep cursor as pointer */
}
.slot-tab.past-slot:hover {
     background-color: #e9ecef; /* Keep grey on hover */
}


/* Offers Section */
.offers-section {
    background-color: #f0f2f5; /* Match body background */
    box-shadow: none;
    padding: 0 15px 15px 15px; /* Adjust padding */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.offers-section h2 { /* Selected Slot Time */
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    color: #1c1e21;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Align items stretch */
    background-color: #fff;
    padding: 0; /* Remove padding, handle internally */
    border: none; /* Remove outer border */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensure content stays within rounded corners */
    position: relative; /* Needed for absolute positioning of pseudo-element */
}

/* Progress bar pseudo-element */
.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--progress-width, 0%); /* Controlled by JS */
    background: linear-gradient(to right, #e7f3ff, #d0e7ff); /* Light blue gradient */
    opacity: 0.6; /* Make it subtle */
    z-index: 0; /* Behind content */
    transition: width 0.5s linear; /* Smooth transition */
}

.offer-details {
    flex-grow: 1;
    padding: 12px 15px; /* Internal padding */
    font-size: 0.9em;
    line-height: 1.4;
    color: #1c1e21;
    /* Add placeholder for logo/flight info */
    position: relative; /* Ensure details are above the progress bar */
    z-index: 1;
    padding-left: 50px; /* Space for logo */
}

/* Placeholder for airline logo */
.offer-details::before {
    content: '✈️'; /* Emoji placeholder */
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 1.5em;
    opacity: 0.6;
}

.offer-datetime {
    font-weight: 600; /* Make date/time bold */
    margin-bottom: 3px;
}

.offer-destination-small {
    font-size: 0.85em; /* Smaller font for destination */
    color: #606770;
    margin-top: 4px;
}

.offer-action-button-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-left: 1px dashed #dcdfe3; /* Dashed border like mockup */
    position: relative; /* Ensure button wrapper is above the progress bar */
    z-index: 1;
    background-color: transparent; /* Ensure wrapper itself doesn't block background */
}

.offer-action-button {
    padding: 8px 18px; /* Adjust padding */
    border-radius: 18px; /* Rounded button */
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s;
    min-width: 90px;
    text-align: center;
    color: #fff; /* Default text color */
}

/* Default state (upcoming/past) - "Подписаться" style */
.offer-action-button:disabled {
    background-color: #e7f3ff; /* Light blue background */
    color: #007bff; /* Blue text */
    cursor: not-allowed;
}
.offer-card.past .offer-action-button:disabled {
     background-color: #e0e0e0; /* Grey for past/completed */
     color: #888;
}


/* Active slot, available offer - "Схватить" style */
.offer-action-button:not(:disabled) {
    background-color: #ffc107; /* Yellowish 'Grab' button */
    color: #1c1e21; /* Dark text */
}
.offer-action-button:not(:disabled):hover {
    background-color: #e0a800;
}

/* Claimed states */
.offer-card.claimed .offer-action-button {
    background-color: #f0f0f0; /* Light grey claimed */
    color: #606770; /* Darker grey text */
}
.offer-card.claimed-by-me .offer-action-button {
    background-color: #31a24c; /* Green for 'Your Ticket' */
    color: white;
}


/* Timer Section */
.timer-section {
    position: fixed; /* Fixed at the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff; /* White background */
    padding: 10px 15px;
    border-top: 1px solid #dcdfe3;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.08);
    display: flex; /* Use flexbox for layout */
    justify-content: space-between;
    align-items: center;
    max-width: 600px; /* Match content width */
    margin-left: auto;
    margin-right: auto;
    z-index: 999;
}

.timer-section h2 { /* Status Text */
    font-size: 1em;
    font-weight: 600;
    color: #1c1e21;
    margin: 0;
    text-align: left;
}

.countdown-timer {
    font-size: 1.8em; /* Slightly smaller */
    font-weight: 700; /* Bolder */
    color: #fa383e; /* Reddish color */
    background-color: #ffebee; /* Light red background */
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 70px; /* Ensure minimum width */
    text-align: center;
}

/* Add placeholder for Share button if needed */
.share-button {
    /* Style the share button if added */
}

/* Authorization Section Styles */
.auth-section {
    text-align: center;
    padding: 30px 15px;
    background-color: #fff; /* White background */
    margin: 20px auto; /* Add some margin */
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-section h2 {
    font-size: 1.3em;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 10px;
}

.auth-section p {
    font-size: 0.95em;
    color: #606770;
    margin-bottom: 20px;
}

.auth-button {
    display: inline-block; /* Allow width/padding */
    padding: 12px 25px;
    background-color: #6a11cb; /* Purple color from mockup */
    color: white;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 80%; /* Make button wider */
    max-width: 300px;
}

.auth-button:hover {
    background-color: #5a0fb3; /* Darker purple */
}

/* Optional: Style for 'How it works' link */
.how-it-works {
    display: block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}
.how-it-works:hover {
    text-decoration: underline;
}

/* Reminder Section Styles */
.reminder-section {
    display: flex; /* Use flex for layout */
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #e7f3ff; /* Light blue background */
    margin: 20px auto 15px auto; /* Margin top/bottom, centered */
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.reminder-section p {
    margin: 0;
    font-size: 0.9em;
    color: #1c1e21;
    font-weight: 500;
    margin-right: 15px; /* Space between text and button */
}

.reminder-button {
    background-color: #007bff; /* Blue button */
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap; /* Prevent button text wrapping */
    transition: background-color 0.2s, opacity 0.2s;
}

.reminder-button span {
    margin-right: 5px;
}

.reminder-button:hover {
    background-color: #0056b3;
}

.reminder-button.subscribed {
    background-color: #6c757d; /* Grey when subscribed */
    opacity: 0.8;
}
.reminder-button.subscribed:hover {
    background-color: #5a6268;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    width: 350px; /* Fixed width for the modal */
}

.modal-content h3 { /* Modal Title */
    font-size: 1.4em;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 15px;
}

.modal-timer {
    font-size: 2.2em;
    font-weight: 700;
    color: #fa383e; /* Reddish color */
    margin-bottom: 15px;
}

.modal-content p { /* Modal Message */
    font-size: 1em;
    color: #606770;
    margin-bottom: 25px;
    min-height: 20px; /* Prevent layout jump */
}

#modal-close-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* Blue button */
    color: white;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#modal-close-button:hover {
    background-color: #0056b3; /* Darker blue */
}

/* Styles for offer details inside the modal */
.modal-offer-details {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: left; /* Align text left within this block */
    position: relative; /* For potential icon */
    padding-left: 45px; /* Space for icon */
}

.modal-offer-details::before { /* Re-use airline icon */
    content: '✈️';
    position: absolute;
    left: 15px;
    top: 10px; /* Adjust vertical position */
    font-size: 1.5em;
    opacity: 0.6;
}

.modal-offer-details .offer-datetime {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.9em; /* Slightly smaller in modal */
}

.modal-offer-details .offer-destination-small {
    font-size: 0.8em; /* Smaller in modal */
    color: #606770;
}


/* Informational Blocks General Styles */
.info-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 15px auto; /* Use auto margin for centering */
    max-width: 600px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-block h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 15px;
}

/* How to Catch Block */
.how-to-catch .steps {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.how-to-catch .step {
    max-width: 100px;
}

.how-to-catch .step .icon {
    font-size: 2em;
    display: block;
    margin-bottom: 8px;
}

.how-to-catch .step p {
    font-size: 0.8em;
    color: #606770;
    line-height: 1.3;
}

/* Share Block */
.share-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e7f3ff; /* Light blue background */
}

.share-block p {
    margin: 0;
    font-weight: 500;
    color: #1c1e21;
}

.share-button-main {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
}
.share-button-main span {
    margin-right: 5px;
}

/* Tutu Benefits Block */
.tutu-benefits .benefits {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.tutu-benefits .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: #606770;
    font-weight: 500;
}
.tutu-benefits .benefit-item .icon {
    font-size: 1.8em;
}

/* Content Cards Block */
.content-cards h3 {
    margin-bottom: 10px;
}
.content-cards > p { /* Subtitle for Gorny Vozduh */
     font-size: 0.9em;
     color: #606770;
     margin-bottom: 15px;
}

.content-cards .cards-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
}

.content-cards .content-card {
    background-color: #f0f2f5; /* Light background for cards */
    border-radius: 10px;
    overflow: hidden;
    min-width: 180px; /* Minimum width for cards */
    flex-shrink: 0; /* Prevent shrinking */
}
.content-cards .content-card.full-width {
    min-width: 100%;
}


.content-cards .card-image.placeholder {
    height: 100px;
    background-color: #e0e0e0; /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.content-cards .card-image.placeholder.large {
    height: 150px;
}
.content-cards .card-image.placeholder::after {
    content: '📷'; /* Placeholder icon */
    font-size: 2em;
}


.content-cards .content-card h4 {
    font-size: 1em;
    font-weight: 600;
    padding: 10px 10px 5px 10px;
    margin: 0;
}

.content-cards .content-card p {
    font-size: 0.85em;
    color: #606770;
    padding: 0 10px 10px 10px;
    margin: 0;
}
