/* Frontend Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
}

/* Header Styles */
header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

nav ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li.nav-item.dropdown {
    display: flex;
    align-items: center;
    height: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
}

nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Dropdown menu styles */
nav .nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

nav .nav-item.dropdown .nav-link {
    background: rgba(255,255,255,0.1);
    color: white;
}

nav .nav-item.dropdown .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

nav .nav-item.dropdown.show {
    /* background: white; */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0;
}

nav .nav-item.dropdown.show .nav-link {
    color: white !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 5px;
    border-bottom: none;
}

nav .dropdown-menu {
    background: white;
    min-width: 200px;
    box-shadow: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    margin-top: 0;
    padding: 5px 0;
    border: none;
    border-top: none;
    width: 100%;
}

nav .nav-item.dropdown.show .dropdown-menu {
    border: none;
    border-top: none;
}

nav .dropdown-item {
    color: #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background: white;
}

nav .dropdown-item:hover {
    background: white;
    color: #333;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    header {
        position: relative;
    }
    
    /* Hide desktop nav on mobile */
    nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        width: 100%;
    }
    
    nav.mobile-menu-open {
        max-height: 500px;
        overflow: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        margin: 0;
    }
    
    nav .dropdown-menu {
        position: static;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
    }
    
    nav .dropdown-item {
        color: white;
        padding: 10px 20px;
    }
    
    nav .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }
    
    nav ul {
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 12px 20px;
        border-radius: 0;
        width: 100%;
        text-align: center;
    }
}

main {
    padding: 0;
}

main > .container {
    padding: 0 20px;
}

/* Banner Hero Section Styles */
.banner-hero-wrapper {
    width: 100%;
    /* margin-left: calc(-50vw + 50%); */
    /* margin-right: calc(-50vw + 50%); */
    margin-bottom: 2rem;
}

.banner-hero {
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 100vw;
    max-width: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.banner-hero-content {
    color: white;
    text-align: center;
    max-width: 100%;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.75);
    padding: 1.5rem 2rem;
    border-radius: 0;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    margin-bottom: 0;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
}

.banner-hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    position: relative;
}

.banner-hero-content p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
    word-wrap: break-word;
    line-height: 1.6;
    position: relative;
}

.banner-hero-btn-wrapper {
    margin-top: 1.5rem;
}

.banner-hero-btn-wrapper .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-hero-btn-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

/* Store Hero Section Styles */
.store-hero-wrapper {
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.store-hero {
    height: 350px;
    overflow: hidden;
    position: relative;
    width: 100vw;
    max-width: 100%;
}

.store-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
}

.store-hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.store-hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    line-height: 1.5;
}

.store-hero-content .bi {
    min-width: 20px;
}

/* Store Card Image Styles */
.store-card-image {
    height: 200px;
    object-fit: cover;
}

.store-card-placeholder {
    height: 200px;
}

.store-card-placeholder-icon {
    font-size: 3rem;
}

.store-hero-placeholder-icon {
    font-size: 6rem;
    opacity: 0.3;
}

/* Motorcycle Card Image Styles */
.motorcycle-card-image {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.motorcycle-card-placeholder {
    height: 200px;
}

.motorcycle-card-placeholder-icon {
    font-size: 3rem;
}

.motorcycle-modal-image {
    max-height: 300px;
    width: auto;
}

.motorcycle-reservation-image {
    max-height: 300px;
    width: auto;
}

.motorcycle-reservation-placeholder {
    height: 200px;
}

.motorcycle-reservation-placeholder-icon {
    font-size: 3rem;
}

/* Image Modal Styles */
.image-modal-image {
    max-height: 80vh;
    width: auto;
}

/* Form Input Styles */
.id-number-input {
    text-transform: uppercase;
}

/* Mobile optimizations for Banner Hero */
@media (max-width: 768px) {
    .banner-hero-wrapper {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .banner-hero {
        height: 200px;
    }
    
    .banner-hero-overlay {
        padding: 0;
    }
    
    .banner-hero-content {
        padding: 1rem 1.5rem;
        border-top: 2px solid rgba(255, 255, 255, 0.8);
        border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .banner-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .banner-hero-content p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .banner-hero-btn-wrapper .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .banner-hero {
        height: 200px;
    }
    
    .banner-hero-content {
        padding: 0.75rem 1rem;
    }
    
    .banner-hero-content h1 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .banner-hero-content p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .banner-hero-overlay {
        padding: 0;
    }
    
    .banner-hero-btn-wrapper .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

/* Mobile optimizations for Store Hero */
@media (max-width: 768px) {
    .store-hero-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .store-hero {
        height: 250px !important;
    }
    
    .store-hero-overlay {
        padding: 1rem 0.75rem;
    }
    
    .store-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .store-hero-content p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }
    
    .store-hero-content .bi {
        font-size: 0.9rem;
        min-width: 18px;
    }
    
    .store-hero-btn-wrapper {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .store-hero-btn-wrapper .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .store-hero {
        height: 250px !important;
    }
    
    .store-hero-content h1 {
        font-size: 1.25rem;
    }
    
    .store-hero-content p {
        font-size: 0.85rem;
    }
    
    .store-hero-overlay {
        padding: 0.75rem 0.5rem;
    }
}

/* Footer Styles */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Alert Styles */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

.alert-warning {
    background: #ffe;
    color: #c93;
    border: 1px solid #fcc;
}

/* Mobile menu hover effect */
@media (max-width: 768px) {
    nav a:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .header-container {
        position: relative;
    }
}

