﻿:root {
    --primary-color-1: #ce0b6d;
    --primary-color-2: #aa2978;
    --primary-color-3: #843481;
    --primary-color-4: #1a3d91;
    --pending-color: #9e631b;
    --success-color: #548a57;
    --primary-gradient: linear-gradient(135deg, #ce0b6d 0%, #aa2978 100%);
    --success-gradient: linear-gradient(135deg, #548a57 0%, #476c4a 100%);
    --danger-gradient: linear-gradient(135deg, #ce0b6d 0%, #aa2978 100%);
    --warning-gradient: linear-gradient(135deg, #9e631b 0%, #7a4c15 100%);
    --info-gradient: linear-gradient(135deg, #843481 0%, #6a2969 100%);
    --secondary-gradient: linear-gradient(135deg, #1a3d91 0%, #152a6b 100%);
}

/* Reset و پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
/*    flex: 1;*/
    padding-top: 64px; /* فاصله از نوبار */
}

.text-primary {
    color: var(--primary-color-4) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #1a3d91;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ناوبری */
.navbar-glass {
    background: #223D90 !important;
 
    z-index: 1030;
}

.navbar-scrolled {
    background: rgba(26, 61, 145, 0.98) !important;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* دکمه‌ها */
.btn-gradient {
    background: linear-gradient(45deg, #1a3d91, #843481);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 8px 20px;
}

    .btn-gradient:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(26, 61, 145, 0.4);
    }

/* انیمیشن‌های سفارشی */
.animate-slide-in {
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hover-scale {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .hover-scale:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    }

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(206, 11, 109, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(206, 11, 109, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(206, 11, 109, 0);
    }
}

/* استایل‌های تقویم */
.fc {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .fc .fc-toolbar {
        direction: rtl;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #2d3748;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .fc .fc-button-group {
        order: 2;
        display: flex;
        gap: 5px;
    }

    .fc .fc-toolbar-chunk:first-child {
        order: 3;
        display: flex;
        gap: 5px;
        margin-top: 10px;
    }

.fc-view-harness {
    height: 400px !important;
}

.fc .fc-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(206, 11, 109, 0.3);
}

    .fc .fc-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(206, 11, 109, 0.3);
    }

.fc .fc-col-header-cell-cushion {
    font-weight: 700;
    color: #4a5568;
    padding: 10px 4px;
    font-size: 0.9rem;
}

/* استایل‌های اسلات‌ها */
.fc .fc-timegrid-slot {
    height: 65px !important;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fc .fc-timegrid-slot-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    padding: 5px 3px;
}

.fc-event {
    margin: 2px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    border: none !important;
}

.fc-event-main {
    padding: 6px 4px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

    .fc-event-main:hover {
        cursor: pointer;
    }

.slot-time {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.slot-price {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 600;
    line-height: 1.1;
}

/* استایل‌های وضعیت اسلات‌ها */
.available-slot {
    background: var(--secondary-gradient) !important;
    color: white !important;
    border-radius: 6px;
    margin: 2px !important;
    box-shadow: 0 2px 8px rgba(26, 61, 145, 0.3);
    transition: all 0.3s ease;
    cursor: pointer !important;
    animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.available-slot:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 15px rgba(26, 61, 145, 0.4);
    animation: none;
}

.reserved-slot {
    background: var(--danger-gradient) !important;
    color: white !important;
    opacity: 0.7;
    border-radius: 6px;
    margin: 2px !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}

.cancelled-slot {
    background: var(--info-gradient) !important;
    color: white !important;
    border-radius: 6px;
    margin: 2px !important;
    border: 1px dashed #843481 !important;
    cursor: pointer !important;
    animation: gentlePulse 4s infinite ease-in-out;
}

.past-slot {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-radius: 6px;
    margin: 2px !important;
    cursor: not-allowed !important;
    opacity: 0.5;
    text-decoration: line-through;
}

.selected-slot {
    background: var(--success-gradient) !important;
    color: white !important;
    transform: scale(0.98);
    box-shadow: 0 0 0 2px rgba(84, 138, 87, 0.5) !important;
    border-radius: 6px;
    margin: 2px !important;
    animation: selectedPulse 1.5s infinite ease-in-out;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(84, 138, 87, 0.5);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(84, 138, 87, 0.3);
    }
}

.pending-slot {
    background: var(--warning-gradient) !important;
    color: white !important;
    transform: scale(0.98);
    border-radius: 6px;
    margin: 2px !important;
    animation: selectedPulse 1.5s infinite ease-in-out;
}

.multi-selected-slot {
    background: var(--success-gradient) !important;
    color: white !important;
    transform: scale(0.98);
    box-shadow: 0 0 0 2px rgba(84, 138, 87, 0.5) !important;
    border-radius: 6px;
    margin: 2px !important;
}

.contract-slot {
    background: var(--secondary-gradient) !important;
    color: white !important;
    border-radius: 6px;
    margin: 2px !important;
    border: 1px dashed #9e631b !important;
    cursor: pointer !important;
}


/* راهنما */
.legend-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .legend-dot.available {
        background: var(--secondary-gradient);
        animation: gentlePulse 3s infinite;
    }

    .legend-dot.reserved {
        background: var(--danger-gradient);
    }

    .legend-dot.selected {
        background: var(--success-gradient);
        animation: selectedPulse 1.5s infinite;
    }

/* استایل‌های مربوط به نمایش مقررات */
.slot-info-section {
    border-right: 4px solid #4facfe;
}

.info-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

    .info-item:last-child {
        border-bottom: none;
    }

.terms-content {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: justify;
}

    .terms-content::-webkit-scrollbar {
        width: 6px;
    }

    .terms-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .terms-content::-webkit-scrollbar-thumb {
        background: #4facfe;
        border-radius: 10px;
    }

        .terms-content::-webkit-scrollbar-thumb:hover {
            background: #228be6;
        }

.terms-agreement {
    transition: all 0.3s ease;
}

    .terms-agreement:focus-within {
        border-color: #4facfe !important;
        box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
    }

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* کارت‌های زمین */
.field-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

    .field-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.field-price {
    font-weight: 700;
    color: #2d3748 !important;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

/* مودال‌های سفارشی */
.modal-content {
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* استایل‌های بخش قرارداد */
.selected-slots-section {
    border-right: 4px solid #1a3d91;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.selected-slot-item {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #548a57;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contract-summary {
    border-right: 4px solid #548a57;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dee2e6;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    font-weight: 700;
    color: #548a57;
}

/* استایل‌های اضافی */
.bg-gradient-primary {
    background: var(--danger-gradient) !important;
}

.field-meta {
    background: var(--info-gradient);
    padding: 15px;
    border-radius: 12px;
    border-right: 5px solid #1a3d91;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.legend-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* انیمیشن‌های پیشرفته */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, #1a3d91, #843481);
}

    .footer a:hover {
        text-decoration: underline;
        color: #ce0b6d !important;
    }

#pageReserveBtn {
    background-color: var(--primary-color-4);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    main {
        padding-top: 51px;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .fc .fc-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .fc .fc-timegrid-slot {
        height: 55px !important;  
    }

    .fc .fc-timegrid-slot-label {
        font-size: 0rem;
        padding: 3px 2px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.8rem;
        padding: 8px 2px;
    }

    .fc-event {
        margin: 1px !important;
        border-radius: 4px !important;
        font-size: 0.6rem !important;
    }

    .fc-event-main {
        padding: 4px 2px !important;

    }

    .slot-time {
        font-size: 1rem;
    }

    .slot-price {
        font-size: 0.7rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .field-card {
        margin-bottom: 1.5rem;
    }

    .selected-slots-section,
    .contract-summary {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 52px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 0.5rem;
    }

    .fc .fc-toolbar-title {
        font-size: 0.9rem;
    }

    .fc .fc-button-group {
        order: 3;
        justify-content: center;
        width: 100%;
    }

    .fc .fc-toolbar-chunk:first-child {
        order: 2;
        justify-content: center;
        width: 100%;
    }

    .fc .fc-timegrid-slot {
        height: 50px !important;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.7rem;
        padding: 6px 1px;
    }

    .modal-content {
        border-radius: 16px !important;
    }

    .legend-dot {
        width: 14px;
        height: 14px;
    }
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #aa2978 0%, #843481 100%);
    }


 
/* Features Section */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sports Fields Section */
.sport-field-card {
    transition: all 0.3s ease;
}

.field-image {
    height: 200px;
    overflow: hidden;
}

    .field-image img {
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.sport-field-card:hover .field-image img {
    transform: scale(1.1);
}

.field-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sport-field-card:hover .field-overlay {
/*    opacity: 1;*/
}

.field-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.field-features {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.feature-item {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Statistics Section */
.statistics {
    background: linear-gradient(135deg, #1a3d91 0%, #843481 100%) !important;
}

.stat-item {
    padding: 2rem 1rem;
}

    .stat-item i {
        opacity: 0.9;
    }

/* How It Works Section */
.step-card {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3d91 0%, #843481 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
/* Testimonials Section */
.testimonial-card {
    transition: all 0.3s ease;
    height: 100%;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

.rating {
    color: #ffc107;
}

.client-avatar {
    width: 50px;
    height: 50px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a3d91 0%, #843481 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card,
    .sport-field-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 0.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}