/* PetroHost Custom Styles */
:root {
    --petrohost-primary: #2563eb;
    --petrohost-secondary: #1d4ed8;
    --petrohost-dark: #1e3a8a;
    --petrohost-light: #3b82f6;
    --petrohost-white: #ffffff;
    --petrohost-gray: #6b7280;
    --petrohost-light-gray: #f3f4f6;
}

/* Header Styles */
header#header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}

header#header .navbar {
    background: #ffffff !important;
    border: none !important;
    margin-bottom: 0 !important;
}

/* Fix navbar collapse - force horizontal menu */
@media (min-width: 768px) {
    .navbar-collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }
    
    .navbar-collapse.collapse {
        display: block !important;
    }
    
    .navbar-nav {
        float: left !important;
        margin: 0 !important;
    }
    
    .navbar-nav.navbar-right {
        float: right !important;
    }
}

/* Force horizontal layout */
.navbar-nav > li {
    float: left !important;
}

.navbar-right > li {
    float: right !important;
}

.navbar-header {
    background: transparent;
}

.navbar-brand {
    padding: 15px 0;
    height: auto;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.top-nav {
    display: none;
}

/* Navigation Styles */
.navbar-nav {
    margin: 0;
}

/* Fix the navbar display issue */
.navbar-collapse {
    max-height: none !important;
}

.navbar-collapse.in {
    overflow-y: visible !important;
}

.navbar-nav > li > a {
    color: #374151 !important;
    font-weight: 500;
    font-size: 16px;
    padding: 25px 20px !important;
    border: none !important;
    transition: color 0.2s ease;
    line-height: 1.5;
    background: transparent !important;
}

/* Ensure navbar is always expanded on desktop */
.navbar-collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
}

.navbar-nav {
    display: block !important;
}

.navbar-nav > li {
    display: block !important;
    float: left !important;
}

.navbar-nav.navbar-right > li {
    float: right !important;
}

/* PetroHost Header Styles */
#petrohost-header {
    position: relative !important;
    z-index: 1000 !important;
}

#petrohost-header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.petrohost-nav {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

.nav-item {
    position: relative !important;
}

.nav-link:hover {
    color: #2563eb !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    min-width: 200px !important;
    display: none !important;
    z-index: 1001 !important;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6 !important;
    color: #2563eb !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #petrohost-header > .container > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        height: auto !important;
        padding: 15px 0 !important;
    }
    
    .petrohost-nav {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 15px !important;
    }
    
    .nav-item {
        width: 100% !important;
    }
    
    .nav-link {
        width: 100% !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .nav-actions {
        margin-top: 15px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important;
    }
}

/* Remove old navbar styles that might conflict */
.navbar, .navbar-default, .navbar-nav, .navbar-collapse {
    all: unset !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: var(--petrohost-primary) !important;
    background: transparent !important;
}

.navbar-nav > li.dropdown > a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 5px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.dropdown-menu > li > a {
    color: #374151;
    padding: 12px 20px;
    font-weight: 400;
}

.dropdown-menu > li > a:hover {
    background-color: #f3f4f6;
    color: var(--petrohost-primary);
}

/* Login Button */
.navbar-right .btn-login {
    background: var(--petrohost-primary) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin: 15px 0 !important;
    margin-left: 15px !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}

.navbar-right .btn-login i {
    margin-right: 5px;
}

.navbar-right .btn-login:hover {
    background: var(--petrohost-secondary);
}

/* Cart Icon */
.navbar-right .cart-icon {
    padding: 20px 15px;
    font-size: 18px;
    color: #6b7280;
}

.navbar-right .cart-icon:hover {
    color: var(--petrohost-primary);
}

/* Mobile Menu */
.navbar-toggle {
    border: 1px solid #e5e7eb;
    background: white;
}

.navbar-toggle .icon-bar {
    background-color: #374151;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    
    .hero-section .row {
        flex-direction: column !important;
    }
    
    .hero-section .col-md-6 {
        padding-right: 20px !important;
        margin-bottom: 40px;
    }
    
    .hero-section .hero-image {
        order: -1;
        margin-bottom: 40px !important;
    }
}

/* Hero animations */
.hero-section .hero-image > div {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

.hero-section .hero-image:hover > div > div {
    transform: rotate(0deg) !important;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
}

.pricing-highlight {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.pricing-currency {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

.btn-hero {
    background: var(--petrohost-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-right: 20px;
    transition: background-color 0.2s ease;
}

.btn-hero:hover {
    background: var(--petrohost-secondary);
    color: white;
}

.countdown-timer {
    color: var(--petrohost-primary);
    font-weight: 600;
    font-size: 16px;
}

/* Features Icons */
.feature-icons {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature-icon {
    display: flex;
    align-items: center;
    color: #10b981;
    font-size: 14px;
}

.feature-icon::before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .pricing-highlight {
        font-size: 28px;
    }
    
    .feature-icons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Container adjustments */
.container {
    max-width: 1200px;
}

/* Homepage specific styles - remove sidebar */
body.homepage .sidebar {
    display: none !important;
}

body.homepage .main-content {
    width: 100% !important;
    float: none !important;
}

body.homepage .col-md-9 {
    width: 100% !important;
}

/* Fix homepage layout */
.homepage #main-body {
    padding: 0 !important;
}

.homepage #main-body .container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

.homepage #main-body .row {
    margin: 0 !important;
}

.homepage #main-body .main-content {
    padding: 0 !important;
    width: 100% !important;
}

/* Remove breadcrumbs and page headers from homepage */
.homepage .page-header {
    display: none !important;
}

.homepage .breadcrumb {
    display: none !important;
}

/* Ensure full width for homepage content */
.homepage .col-xs-12 {
    width: 100% !important;
    padding: 0 !important;
}

/* Remove default margins */
body {
    padding-top: 0 !important;
}

.navbar-fixed-top {
    position: relative !important;
}

/* Fix navbar height */
.navbar {
    min-height: 70px;
}

.navbar-brand {
    height: 70px;
    line-height: 40px;
}

.navbar-nav > li > a {
    padding-top: 25px;
    padding-bottom: 25px;
}