/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(245, 238, 238);
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === NAVBAR STYLES === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1001;
}

/* Hamburger Menu Button */
.menu-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}

/* Centered Logo */
.navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar .logo img {
    max-width: 100px;
}

/* Logo inside sidebar */
.logo-menu {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    z-index: 1002;
}

.logo-menu img {
    max-width: 100px;
    display: block;
}

/* “Adrenaline Addicts” text inside sidebar */
.adrenaline-menu {
    font-family: 'Old English Text MT', serif;
    position: absolute;
    color: white;
    font-size: 20px;
    font-weight: bold;
    top: 95px;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Right Navbar Items */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switch,
.login-btn {
    color: white;
    background: transparent;
    padding: 6px 12px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid white;
}

.login-btn:hover,
.language-switch:hover {
    background: white;
    color: black;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px;
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo img {
        max-width: 75px;
    }

    .nav-right {
        gap: 5px;
    }

    .language-switch,
    .login-btn {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* === SIDEBAR MENU === */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background: #222;
    padding-top: 140px;
    transition: 0.3s;
    z-index: 1003;
}

.sidebar.active {
    left: 0;
}

/* Menu items container */
.menu-items {
    margin-top: 40px; /* Adjust this value to push menu down */
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Sidebar links */
.sidebar a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar a:hover {
    background: #ff0000;
}

/* Close Button */
.close-btn {
    position: absolute;
    background: #222;
    top: 10px;
    right: 10px;
    color: white;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    transition: 0.3s;
}

/* Social icons at bottom of sidebar */
.social-links {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.social-links a img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.social-links a img:hover {
    transform: scale(1.2);
}

/* === GENERAL PAGE STYLES === */
main {
    padding-top: 80px;
    text-align: center;
}

/* === AUTH PAGES (LOGIN & REGISTER) === */
body.login-page,
body.register-page {
    background: url('https://adrenalineaddicts.net/assets/IMG_0357.PNG') center/cover no-repeat fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

/* Overlay to improve text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* === LOGIN & REGISTER FORM CONTAINER === */
.auth-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Form inputs */
.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Placeholder text */
.auth-container input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.auth-container .btn {
    width: 100%;
    padding: 12px;
    background: #ff0000;
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.auth-container .btn:hover {
    background: rgb(180, 20, 20);
}

/* Adjust link color */
.auth-container a {
    color: white;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Center Box on Mobile */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
        padding: 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}



/* ============================
   CREATE YOUR OWN CARD PAGE
   ============================ */

/* Same background as AA pages */
body.create-card-page {
    background:
        radial-gradient(circle at 20% 0, rgba(255, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(255, 0, 0, 0.18), transparent 55%),
        #000000;
    min-height: 100vh;
}

/* Main section */
.create-card-section {
    width: 100%;
    min-height: calc(100vh - 140px); /* space for navbar + footer */
    padding: 50px 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.create-card-title {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.create-card-subtitle {
    color: #bbbbbb;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* Cards container */
.create-card-options {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
    max-width: 1050px;
}

/* Card style */
.card-type-box {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;

    width: 360px;
    min-height: 520px;

    padding: 30px 22px;
    border-radius: 26px;

    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);

    text-decoration: none;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Hover */
.card-type-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Top badge */
.card-type-badge {
    position: absolute;
    top: 18px;
    left: 24px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #444;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-premium {
    background: #ff3b3b;
}

/* Title */
.card-type-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 50px 0 12px;
}

/* Description */
.card-type-box p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 16px;
}

/* BENEFITS LIST */
.card-benefits {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px;
}

.card-benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    color: #dcdcdc;
    line-height: 1.4;
}

/* Bullet */
.card-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #00d36f;
    font-size: 1.1rem;
}

/* CTA button */
.card-type-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
}

/* Premium glow */
.card-type-premium {
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.55);
}

/* Price */
.card-type-price {
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.9;
}

/* ------- Responsive ------- */

/* Tablets */
@media (max-width: 992px) {
    .create-card-options {
        flex-wrap: wrap;
        gap: 24px;
    }

    .card-type-box {
        width: 340px;
        min-height: 480px;
    }
}

/* Phones */
@media (max-width: 768px) {
    .create-card-section {
        padding: 130px 16px 70px;
    }

    .create-card-options {
        flex-wrap: wrap;
        gap: 18px;
    }

    .card-type-box {
        width: 100%;
        min-height: auto;
        padding: 28px 20px 24px;
    }
}

/* ============================
   AA CARD REQUEST PAGE
   ============================ */

body.aa-card-request-page {
    background:
        radial-gradient(circle at 20% 0, rgba(255, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(255, 0, 0, 0.18), transparent 55%),
        #000000;
    min-height: 100vh;
}

.aa-request-section {
    width: 100%;
    min-height: calc(100vh - 140px); /* navbar + footer space */
    padding: 150px 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.aa-request-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.aa-request-subtitle {
    color: #cfcfcf;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Wrapper: two columns (info + form) */
.aa-request-wrapper {
    display: flex;
    gap: 28px;
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Left info card */
.aa-request-info {
    flex: 1;
    background: rgba(10, 10, 10, 0.92);
    border-radius: 26px;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
    color: #f2f2f2;
}

.aa-request-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ff3b3b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.aa-request-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.aa-request-info p {
    font-size: 0.98rem;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.aa-request-info ul {
    padding-left: 18px;
    margin-bottom: 14px;
}

.aa-request-info li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.aa-request-note {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Right form card */
.aa-request-form-card {
    flex: 1;
    background: rgba(10, 10, 10, 0.96);
    border-radius: 26px;
    padding: 28px 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
    color: #f2f2f2;
}

/* Form layout */
.aa-request-form-card form {
    width: 100%;
}

.aa-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

.aa-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.aa-form-group label {
    font-size: 0.9rem;
    color: #d5d5d5;
}

.aa-form-group input,
.aa-form-group select,
.aa-form-group textarea {
    background: #121212;
    border-radius: 10px;
    border: 1px solid #333;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #f2f2f2;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aa-form-group input::placeholder,
.aa-form-group textarea::placeholder {
    color: #777;
}

.aa-form-group input:focus,
.aa-form-group select:focus,
.aa-form-group textarea:focus {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.6);
}

/* Checkbox row */
.aa-form-checkbox {
    margin: 12px 0 18px;
    font-size: 0.9rem;
    color: #d0d0d0;
}

.aa-form-checkbox input {
    margin-right: 6px;
}

/* Submit button */
.aa-request-submit {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff3b3b, #ff6633);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.aa-request-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 0, 0, 0.7);
    opacity: 0.96;
}

/* --------- Responsive --------- */

/* Tablets and small laptops */
@media (max-width: 992px) {
    .aa-request-wrapper {
        flex-wrap: wrap;
    }

    .aa-request-info,
    .aa-request-form-card {
        flex: 1 1 100%;
    }
}

/* Phones */
@media (max-width: 768px) {
    .aa-request-section {
        padding: 130px 16px 70px;
    }

    .aa-form-row {
        flex-wrap: wrap;
    }
}

/* ============================
   AA CARD INFO PAGE (aa_info.php)
   ============================ */

body.aa-info-page {
    background:
        radial-gradient(circle at 20% 0, rgba(255, 0, 0, 0.18), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(255, 0, 0, 0.18), transparent 55%),
        #000000;
    min-height: 100vh;
    color: #ffffff;
}

/* Main section wrapper */
.aa-info-section {
    width: 100%;
    min-height: calc(100vh - 140px); /* navbar + footer space */
    padding: 70px 6% 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flex container (text + image) */
.aa-info-container {
    max-width: 1150px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

/* Text side */
.aa-info-text {
    text-align: left;
}

.aa-info-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff3b3b;
    margin-bottom: 10px;
}

.aa-info-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: #ffffff;
}

.aa-info-paragraph {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #dddddd;
    margin-bottom: 14px;
}

/* Buttons */
.aa-info-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aa-info-btn-primary,
.aa-info-btn-ghost {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.aa-info-btn-primary {
    background: #ff3b3b;
    border: 1px solid #ff3b3b;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 59, 59, 0.45);
}

.aa-info-btn-primary:hover {
    background: #ff5555;
    border-color: #ff5555;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 59, 59, 0.65);
}

.aa-info-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.aa-info-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Image side */
.aa-info-image-wrapper {
    display: flex;
    justify-content: center;
}

.aa-info-image-card {
    background: #121212;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.aa-info-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .aa-info-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .aa-info-text {
        text-align: center;
    }

    .aa-info-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aa-info-section {
        padding: 120px 16px 70px;
    }
}

/* User Dashboard Specific Styles */
.user-dashboard {
    padding: 20px;
    text-align: center;
}

/* User Cars List */
.user-dashboard .car-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.user-dashboard .car-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    text-align: center;
}

.user-dashboard .car-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.user-dashboard .car-card h4 {
    margin: 10px 0;
}

.user-dashboard .car-card a {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.user-dashboard .car-card a:hover {
    background: #cc0000;
}

/* Add Car Form Styling */
.user-dashboard form {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.user-dashboard form input,
.user-dashboard form button {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.user-dashboard form button {
    background: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.user-dashboard form button:hover {
    background: #882121;
}

/* === GALLERY STYLES === */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* === FOOTER STYLES === */
.footer {
    width: 100%;
    background: #111;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto; /* 👈 MAGIC LINE */
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-nav a,
.footer-social a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}

.footer-social img {
    height: 20px;
}

/* === SPECIFICALLY FOR LOGIN & REGISTER PAGES FOOTER === */
body.login-page .footer,
body.register-page .footer,
body.double-a-card-page .footer {
    position: absolute;
    bottom: 0;
}

/* =========================================
   FLASH MESSAGES (brand: Adrenaline Addicts)
   ========================================= */
.flash-container {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 700px);
    z-index: 1100;
    pointer-events: none;
}

.alert {
    pointer-events: auto;
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2px;
    backdrop-filter: blur(4px);
    animation: aaFadeDown .35s ease both;
}

.alert-success {
    background: rgba(232, 249, 241, 0.92);
    border-color: #a5f3c6;
    color: #065f46;
}

.alert-info {
    background: rgba(239, 246, 255, 0.92);
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.alert-error {
    background: rgba(255, 0, 0, 0.10);
    border-color: #ff0000;
    color: #8b0000;
}

@keyframes aaFadeDown {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Improve auth container spacing on tiny screens */
@media (max-width: 480px) {
    .flash-container {
        top: 12px;
        width: 94%;
    }

    .alert {
        font-size: 14px;
        padding: 12px 14px;
    }
}


/* ===== MOBILE SIDEBAR SPACING FIX ===== */
@media (max-width: 768px) {

    /* move everything higher */
    .sidebar {
        padding-top: 110px !important;   /* reduce distance below logo */
    }

    .menu-items {
        margin-top: 30px !important;     /* pull menu items closer to logo */
    }

    /* optional — shrink logo slightly for better spacing */
    .logo-menu img {
        max-width: 85px;
    }
}
