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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--gray-900);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.95;
}

.legend-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

main {
    padding: 30px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Couple Selection */
.couple-selection {
    text-align: center;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
}

.couple-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-700);
}

#couple-select {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.3s;
}

#couple-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Availability Grid */
.availability-grid {
    display: grid;
    gap: 15px;
}

.weekend-row {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.weekend-row:hover {
    transform: translateX(5px);
}

.weekend-info h3 {
    color: var(--gray-900);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.weekend-info p {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.availability-options {
    display: flex;
    gap: 10px;
}

.option-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    transform: scale(1.1);
}

.option-btn.active-tick {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.option-btn.active-tilde {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.option-btn.active-cross {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    background: var(--gray-200);
    cursor: not-allowed;
}

/* Results Grid */
.results-grid {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.results-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.results-table tr:nth-child(even) {
    background: var(--gray-50);
}

.response-icon {
    font-size: 1.5rem;
}

.no-data {
    text-align: center;
    color: var(--gray-700);
    padding: 40px;
    background: var(--gray-50);
    border-radius: 12px;
}

/* Top Months View */
.top-months {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.month-group {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.month-group h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.month-weekends {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekend-result {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.weekend-result strong {
    color: var(--gray-900);
    font-size: 1rem;
}

.response-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.couple-response {
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Popular Weekends */
.popular-weekends {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
}

.popular-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.popular-item h3 {
    color: var(--gray-900);
    margin-bottom: 5px;
    font-size: 1rem;
}

.popular-item p {
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* Destination Box */
.destination-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
}

.destination-box h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.destination-box p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.destination-box .season-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

footer {
    background: var(--gray-900);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .legend {
        font-size: 0.8rem;
    }

    .weekend-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .availability-options {
        justify-content: center;
    }

    main {
        padding: 20px;
    }
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
}

.install-prompt:hover {
    transform: translateY(-5px);
}
