/* Paket Rezervasyon Sayfası CSS */

.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #0dcaf0 100%) !important;
    padding: 40px 0 30px; /* Çok daha kısa padding */
    margin: 15px 0; /* Üst ve alttan 15px margin */
    position: relative;
    min-height: auto; /* min-height'i kaldır */
}

.hero-section.bg-gradient {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #0dcaf0 100%) !important;
    color: white;
}

/* Hero section'daki yazılar için renk garantisi */
.hero-section h1,
.hero-section p,
.hero-section .step-text {
    color: white !important;
}

/* Min-vh'yi kaldır veya küçült */
.min-vh-50 {
    min-height: auto !important; /* min-height'i kaldır */
}

.reservation-steps {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Gap'i azalt */
    margin-top: 1.5rem; /* Margin'i azalt */
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 35px; /* Boyutu küçült */
    height: 35px; /* Boyutu küçült */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.4rem; /* Margin'i azalt */
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem; /* Font boyutunu küçült */
}

.step.active .step-number {
    background: white;
    color: #28a745 !important;
    border-color: white;
}

.step-text {
    color: white !important;
    font-size: 0.85rem; /* Font boyutunu küçült */
    text-align: center;
}

/* Başlık ve açıklama boyutlarını küçült */
.hero-section h1 {
    font-size: 2.2rem !important; /* Display-4'ten daha küçük */
    margin-bottom: 1rem !important;
}

.hero-section .lead {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* Date Selection */
.date-info-box {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.date-info-box.active {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1) !important;
}

.info-item h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

.calendar-preview {
    max-height: 200px;
    overflow-y: auto;
}

.selected-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-tag {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.date-tag.weekend {
    background: #ffc107;
    color: #000;
}

/* Meal Selection */
.global-selection {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.meal-option {
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
}

.meal-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.meal-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.meal-option:hover .meal-card {
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.meal-option input[type="checkbox"]:checked + label .meal-card {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.meal-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.meal-option input[type="checkbox"]:checked + label .meal-icon {
    color: #28a745;
}

.meal-card h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.meal-card small {
    color: #6c757d;
    font-weight: 500;
}

/* Daily Meal Selection */
.view-toggle .btn {
    border-radius: 0;
    border-right: none;
}

.view-toggle .btn:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.view-toggle .btn:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
    border-right: 1px solid #dee2e6;
}

.view-toggle .btn.active {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.daily-meal-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.daily-meal-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

.daily-meal-item .date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.date-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Define uniform dimensions for meal cards */
.meal-card {
    width: 150px; /* Set a standard width */
    height: 200px; /* Set a standard height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #dee2e6; /* Optional: consistent border */
    border-radius: 8px; /* Optional: rounded corners */
    padding: 10px; /* Space inside the card */
    background-color: #fff; /* Ensure consistent background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: consistent shadow */
}

.meal-card h6 {
    margin-top: 10px; /* Adjust spacing between icon and text */
    font-size: 16px;
    text-align: center;
}

.meal-card .meal-icon {
    font-size: 36px;
    color: #6c757d; /* Adjust icon color */
}

.date-badge.weekend {
    background: #fff3cd;
    color: #856404;
}

.daily-meals {
    display: flex;
    gap: 1rem;
}

.daily-meal-checkbox {
    flex: 1;
    text-align: center;
}

.daily-meal-checkbox input[type="checkbox"] {
    display: none;
}

.daily-meal-checkbox label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.daily-meal-checkbox input[type="radio"] {
    display: none;
}

.daily-meal-checkbox label:hover {
    border-color: #28a745;
    background-color: #f8f9fa;
}

.daily-meal-checkbox input[type="radio"]:checked + label {
    border-color: #28a745;
    background-color: #d4edda;
}

.daily-meal-checkbox label > div {
    font-weight: 500;
    color: #495057;
}

.daily-meal-checkbox label > small {
    font-weight: 600;
    color: #28a745;
}

.daily-meal-checkbox input[type="checkbox"]:checked + label {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.daily-meal-checkbox i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.daily-meal-checkbox small {
    display: block;
    font-weight: 500;
}

/* Sticky Summary */
.sticky-summary {
    position: sticky;
    top: 100px;
}

.summary-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-breakdown {
    font-size: 0.9rem;
}

.price-breakdown strong {
    font-size: 1.1rem;
    color: #28a745;
}

/* Feature Items */
.feature-item {
    padding: 1.5rem;
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 20px; /* Mobilde daha da küçük */
        margin: 10px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem !important;
    }

    .hero-section .lead {
        font-size: 1rem !important;
    }

    .reservation-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step {
        flex-direction: row;
        justify-content: center;
    }

    .step-number {
        margin-right: 0.5rem;
        margin-bottom: 0;
        width: 30px;
        height: 30px;
    }

    .daily-meals {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sticky-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .meal-option {
        margin-bottom: 0.5rem;
    }

    .meal-card {
        padding: 1rem 0.5rem;
    }

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

    .feature-item {
        padding: 1rem;
    }
}

/* Custom Animations */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Success States */
.success-highlight {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #28a745;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.daily-meal-group {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.meal-option-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 15px;
}

.meal-option {
    margin-bottom: 0;
}

.meal-option-group hr {
    margin: 8px 0;
    border-color: #dee2e6;
}
