/* 
  THROTLLR - Royal Enfield Inspired CSS
  Theme: Rugged, dark tones, metallic accents, bold typography.
*/

:root {
    --primary-color: #d1121d;
    /* Royal Enfield Red */
    --primary-hover: #a30e16;
    --bg-dark: #121212;
    --bg-lighter: #1e1e1e;
    --bg-card: #252525;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    
    /* Fluid Font Sizes */
    --fs-h1: clamp(2.2rem, 10vw, 5rem);
    --fs-h2: clamp(1.6rem, 7vw, 3rem);
    --fs-h3: clamp(1.2rem, 5vw, 1.8rem);
    --fs-body: clamp(0.9rem, 2vw, 1.1rem);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
body { font-size: var(--fs-body); }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Base Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #2a2a2a;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(209, 18, 29, 0.2);
}

/* Cards */
.card {
    background: rgba(37, 37, 37, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
    background: rgba(45, 45, 45, 0.9);
}

.card-img-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--primary-color);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Increased from 80px to accommodate larger logo */
    position: relative;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 100px; /* Balanced with new navbar height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s ease;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        gap: 30px !important;
        align-items: flex-start !important;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem !important;
        width: 100%;
    }
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: white;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .brand-logo {
        height: 60px;
    }
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-image 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.hero-title {
    font-size: var(--fs-h1);
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--bg-lighter);
    border-top: 2px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-col h3 {
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--primary-color) !important;
}

.footer-contact-link i {
    color: var(--primary-color);
}

/* Badges & Status */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-pending {
    background-color: var(--warning);
    color: #000;
}

.badge-approved {
    background-color: var(--success);
    color: #fff;
}

.badge-rejected {
    background-color: var(--danger);
    color: #fff;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    /* minus navbar */
}

.dashboard-sidebar {
    width: 250px;
    background-color: var(--bg-lighter);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(209, 18, 29, 0.1);
    border-left-color: var(--primary-color);
    color: white;
}

.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-content {
    flex: 1;
    padding: 30px;
    background-color: var(--bg-dark);
    min-width: 0; /* Prevent overflow */
}

@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        padding: 10px 0;
    }

    .sidebar-nav {
        display: flex;
        padding: 0 10px;
    }

    .sidebar-link {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 15px;
    }
}

/* Grid Adjustments */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.grid-2-col-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .grid-2-col-responsive {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade {
    animation: fadeIn 1s ease-out;
}

/* Filter Bar Specifics */
.filter-bar-responsive {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .filter-bar-responsive {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        flex: 1 1 100% !important;
    }
    .filter-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    .filter-actions .btn {
        flex: 1;
    }
}

/* Premium UI Additions */
.section-indicator {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #d1121d);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(209, 18, 29, 0.4);
    position: relative;
    top: -2px;
}

.premium-header {
    display: inline-block;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-view-premium {
    background-color: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
    font-size: 0.8rem !important;
    padding: 6px 15px !important;
    border-radius: 2px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
}

.btn-view-premium:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Utilities */
.section-header-standard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title-standard {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.section-divider-standard {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.section-subtitle-standard {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-5 {
    margin-bottom: 50px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

.gap-4 {
    gap: 20px;
}

.w-100 {
    width: 100%;
}

.text-primary {
    color: var(--primary-color);
}

/* Road Diaries */
.road-diaries-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.road-diaries-grid::-webkit-scrollbar {
    display: none;
}

.btn-slider-prev, .btn-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.btn-slider-prev { left: -60px; }
.btn-slider-next { right: -60px; }

.btn-slider-prev:hover, .btn-slider-next:hover {
    background-color: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1300px) {
    .btn-slider-prev { left: 10px; }
    .btn-slider-next { right: 10px; }
}

.vlog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
}

.vlog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.vlog-video {
    width: 100%;
    background-color: #000;
}

.vlog-video iframe {
    border-bottom: 2px solid var(--primary-color);
}

.vlog-info {
    padding: 20px;
}

.vlog-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.vlog-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .road-diaries-grid {
        grid-template-columns: 1fr;
    }
}