/* 
    Frontend Master Styles for e-POD Shree
    Refactored: Removed !important by using .frontend-page specificity
*/

:root {
    --frontend-primary: #EB3C27;
    --frontend-secondary: #1e293b;
    --frontend-bg: #f8fafc;
    --font-family: 'Outfit', sans-serif;
}

.frontend-page {
    font-family: var(--font-family);
    background-color: var(--frontend-bg);
    color: #334155;
    overflow-x: hidden;
}

/* Typography & General */
.frontend-page .hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--frontend-secondary);
    display: block;
}

.frontend-page .hero-title span {
    color: var(--frontend-primary);
}

.frontend-page .hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.frontend-page .btn-frontend-primary {
    background-color: var(--frontend-primary);
    border-color: var(--frontend-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.frontend-page .btn-frontend-primary:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 60, 39, 0.2);
}

/* Sections */
.frontend-page .section-padding {
    padding: 5rem 0;
}

.frontend-page .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-top: 80px; /* Space for fixed header */
}

/* Header & Navigation */
.frontend-page .frontend-header {
    background: #fff;
    transition: all 0.3s ease;
}

.frontend-page .frontend-header .navbar {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.frontend-page .frontend-header .nav-link {
    color: #475569;
    font-size: 1.05rem;
}

.frontend-page .frontend-header .nav-link:hover {
    color: var(--frontend-primary);
}

.frontend-page .navbar-brand .text-gradient {
    font-weight: 800;
}

/* Footer */
.frontend-page .social-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #475569;
    transition: all 0.3s;
    text-decoration: none;
}

.frontend-page .social-icon:hover {
    background: var(--frontend-primary);
    color: #fff;
    transform: translateY(-3px);
}

.frontend-page .hover-primary:hover {
    color: var(--frontend-primary);
}

/* Search Card */
.frontend-page .search-card-float {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

/* Utilities */
.frontend-page .text-gradient {
    background: linear-gradient(90deg, var(--frontend-primary), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frontend-page .bg-soft-primary {
    background-color: rgba(235, 60, 39, 0.1);
}

/* Features */
.frontend-page .feature-icon-wrapper {
    min-width: 60px;
    height: 60px;
    background: #fff5f4;
    color: var(--frontend-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

/* Lookup Page Specific */
.frontend-page .lookup-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.frontend-page .lookup-form-input {
    height: 65px;
    font-size: 1.1rem;
    border-radius: 50rem;
    padding-left: 2rem;
    border: 2px solid #e2e8f0;
}

.frontend-page .lookup-form-input:focus {
    border-color: var(--frontend-primary);
    box-shadow: 0 0 0 4px rgba(235, 60, 39, 0.1);
}

.frontend-page .lookup-form-btn {
    top: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 5;
    border-radius: 50rem;
    padding: 0 2rem;
}

.frontend-page .lookup-results-container {
    min-height: 200px;
}

.frontend-page .loading-spinner-large {
    width: 3.5rem; 
    height: 3.5rem;
}

/* Visibility Utilities */
.frontend-page .display-none {
    display: none;
}

/* Responsive Adjustments */

@media (max-width: 1200px) {
    .frontend-page .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .frontend-page .hero-section {
        padding: 4rem 0;
        margin-top: 70px;
    }
    
    .frontend-page .hero-title {
        font-size: 2.5rem;
    }
    
    .frontend-page .search-card-float {
        padding: 2rem;
        margin-top: -3rem;
    }
}

@media (max-width: 767px) {
    .frontend-page .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .frontend-page .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .frontend-page .section-padding {
        padding: 3rem 0;
    }

    /* Fix Search Group on Mobile */
    .frontend-page .search-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .frontend-page .lookup-form-input {
        width: 100%;
        height: 55px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .frontend-page .lookup-form-btn {
        position: static;
        width: 100%;
        height: 55px;
        border-radius: 12px;
        top: auto;
        right: auto;
        bottom: auto;
    }
    
    .frontend-page .navbar {
        padding: 0.5rem 0;
    }

    .frontend-page .navbar-toggler {
        border: none;
        padding: 0;
    }

    .frontend-page .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .frontend-page h2.fw-bold {
        font-size: 1.75rem;
    }

    /* Features */
    .frontend-page .d-flex.gap-4 {
        gap: 1.25rem;
    }
    
    .frontend-page .feature-icon-wrapper {
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Footer Spacing */
    .frontend-page .footer-section {
        text-align: center;
    }
    
    .frontend-page .footer-section .social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .frontend-page .footer-section h5 {
        margin-top: 1.5rem;
    }

    /* Details Grid */
    .frontend-page .info-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Order Header View in Lookup */
    .frontend-page .order-header-card {
        padding: 20px;
    }
    
    .frontend-page .order-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .frontend-page .order-id-section h1 {
        font-size: 24px;
    }
    
    /* Horizontal Timeline to Scrollable */
    .frontend-page .timeline-progress {
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .frontend-page .timeline-step {
        min-width: 120px;
        flex: 0 0 auto;
    }
    
    .frontend-page .timeline-line {
        min-width: 600px;
    }
    
    /* Tabs on Mobile */
    .frontend-page .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .frontend-page .hero-title {
        font-size: 1.75rem;
    }
    
    .frontend-page .navbar-brand img {
        height: 30px;
    }
}
