/* SkyReserve Main CSS */

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    line-height: 1.7em;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: auto;
    position: relative;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 25px;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
}

h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #a8977d;
    border: 2px solid #a8977d;
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    color: #a8977d;
    border: 2px solid #a8977d;
}

.btn-secondary {
    background-color: #fff;
    color: #a8977d;
    border: 2px solid #a8977d;
}

.btn-secondary:hover {
    background-color: #a8977d;
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Navigation */
.header-nav {
    background-color: rgba(0,0,0,0.9);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-wrapper .logo {
    display: inline-block;
    line-height: 0;
}

.nav-wrapper .logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    padding: 10px 0;
}

.nav-menu a:hover {
    color: #a8977d;
}

/* Main content offset for fixed nav */
main {
    padding-top: 100px;
}

/* Messages positioning - account for fixed header */
.messages-container {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0 15px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

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

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error,
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 80px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    color: #ccc;
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #a8977d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 151, 125, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.card h1, .card h2, .card h3, .card h4 {
    margin-top: 0;
}

.card-header {
    background: #f8f9fa;
    margin: -40px -40px 30px -40px;
    padding: 25px 40px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e9ecef;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
}

.table th,
.table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}

/* Enhanced Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-mobile-stack {
    border: 0;
}

.table-mobile-stack thead {
    display: none;
}

.table-mobile-stack tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-mobile-stack td {
    border: none;
    display: block;
    text-align: left;
    padding: 10px 15px;
}

.table-mobile-stack td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    display: inline-block;
    width: 120px;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 12px 18px;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #a8977d;
    color: #fff;
    border-color: #a8977d;
}

.pagination .current {
    background-color: #a8977d;
    color: #fff;
    border-color: #a8977d;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 250px 0 150px;
    color: white;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Prata', Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Flight Cards */
.flight-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.flight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.flight-route {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.flight-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.flight-detail:last-child {
    border-bottom: none;
}

.flight-detail strong {
    color: #a8977d;
    min-width: 120px;
    font-weight: 600;
}

/* Subscription Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: #fff;
    border-radius: 12px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #f0f0f0;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.plan-card.featured {
    border: 3px solid #a8977d;
    transform: scale(1.05);
}

.plan-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #a8977d;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 48px;
    font-weight: bold;
    color: #a8977d;
    margin-bottom: 25px;
    line-height: 1;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Auth Pages Styling */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    margin-bottom: 10px;
}

.auth-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 25px;
}

.auth-links a {
    color: #a8977d;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Badges and Labels */
.badge {
    background-color: #a8977d;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: linear-gradient(45deg, #a8977d, #c4b293);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.badge-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-emptyleg {
    background-color: #28a745;
    color: white;
}

.badge-regular {
    background-color: #6c757d;
    color: white;
}

.badge-status {
    background-color: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Contact and FAQ Sections */
.contact-info .flight-detail {
    margin-bottom: 20px;
    padding: 15px 0;
}

.faq-section h4 {
    color: #a8977d;
    margin-bottom: 10px;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .plan-card {
        padding: 40px 25px;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    /* Logo on Mobile */
    .nav-wrapper .logo img {
        height: 42px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(0,0,0,0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 15px 0;
        font-size: 18px;
        width: 100%;
        border-bottom: none;
    }
    
    /* Prevent scrolling when menu is open */
    body.nav-open {
        overflow: hidden;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons,
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .flight-details {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .card-header {
        margin: -25px -20px 25px -20px;
        padding: 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-group .btn {
        width: auto;
        min-width: 120px;
    }
    
    /* Enhanced Table Mobile Handling */
    .table-responsive .table {
        min-width: 600px;
    }
    
    .table-mobile-adaptive {
        border: 0;
    }
    
    .table-mobile-adaptive thead {
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .table-mobile-adaptive tr {
        border: 1px solid #ccc;
        border-radius: 8px;
        display: block;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .table-mobile-adaptive td {
        border: none;
        display: block;
        font-size: 14px;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    .table-mobile-adaptive td:last-child {
        border-bottom: none;
    }
    
    .table-mobile-adaptive td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #333;
        display: inline-block;
        width: 100px;
        margin-right: 10px;
    }
    
    /* Form improvements for mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Analytics specific mobile styles */
    .analytics-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-header {
        margin: -20px -15px 20px -15px;
        padding: 15px;
    }
    
    .plan-card {
        padding: 30px 20px;
    }
    
    .plan-price {
        font-size: 36px;
    }
    
    /* Ultra-compact table for very small screens */
    .table-responsive .table th:nth-child(n+4),
    .table-responsive .table td:nth-child(n+4) {
        display: none;
    }
    
    .table-responsive .table th:last-child,
    .table-responsive .table td:last-child {
        display: table-cell;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
        right: 10px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 80px 20px 20px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 24px;
    }
    
    .plan-price {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .nav-menu {
        padding: 70px 15px 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 15px !important; }
.mt-2 { margin-top: 25px !important; }
.mt-3 { margin-top: 35px !important; }
.mt-4 { margin-top: 50px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 15px !important; }
.mb-2 { margin-bottom: 25px !important; }
.mb-3 { margin-bottom: 35px !important; }
.mb-4 { margin-bottom: 50px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 15px !important; }
.p-2 { padding: 25px !important; }
.p-3 { padding: 35px !important; }
.p-4 { padding: 50px !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.border-0 { border: none !important; }
.rounded { border-radius: 8px !important; }
.shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }

/* Mobile-specific utility classes */
@media (max-width: 768px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
    
    .mobile-text-center { text-align: center !important; }
    .mobile-full-width { width: 100% !important; }
} 