/* ----------------------------------------------------------
   Raj Marketing – Global Styles (Neon Blue Theme)
   File: css/style.css
-----------------------------------------------------------*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #007BFF;
    --primary-dark: #0056D2;
    --accent: #00C8FF;
    --text-dark: #1A1A1A;
    --bg-light: #F8FAFF;
    --white: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.2);

    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 35px rgba(0, 123, 255, 0.25);

    --radius: 14px;
    --transition: 0.25s ease-in-out;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ----------------------------------------------------------
   NAVBAR
-----------------------------------------------------------*/
.navbar {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 99;
}

.navbar img.logo {
    height: 45px;
}

.navbar-links a {
    margin-left: 30px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

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

/* ----------------------------------------------------------
   BUTTONS
-----------------------------------------------------------*/
.btn {
    padding: 10px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-strong);
}

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

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

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

/* ----------------------------------------------------------
   GLASS CARD
-----------------------------------------------------------*/
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ----------------------------------------------------------
   BADGES
-----------------------------------------------------------*/
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
}

.badge-gold {
    background: linear-gradient(45deg, #FFCA28, #FFB300);
}

.badge-green {
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
}

.badge-blue {
    background: linear-gradient(45deg, #007BFF, #0056D2);
}

/* ----------------------------------------------------------
   SEARCH BAR
-----------------------------------------------------------*/
.search-bar {
    width: 90%;
    margin: 30px auto;
    display: flex;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-bar button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
}

/* ----------------------------------------------------------
   GRID LAYOUT
-----------------------------------------------------------*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 40px;
}

/* ----------------------------------------------------------
   DEALER CARD
-----------------------------------------------------------*/
.dealer-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.dealer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.dealer-card img.cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.dealer-card .content {
    padding: 15px;
}

.dealer-card .profile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-top: -35px;
    border: 3px solid var(--white);
    object-fit: cover;
}

/* ----------------------------------------------------------
   RESPONSIVE
-----------------------------------------------------------*/
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .grid {
        padding: 15px 15px;
    }

    .search-bar {
        width: 94%;
    }
}
/* ----------------------------------------------------------
   GLOBAL ANIMATIONS & EFFECTS
-----------------------------------------------------------*/

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glow effect for badges */
.badge-gold, .badge-green, .badge-blue {
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    padding: 6px 14px;
    animation: badgeGlow 2.5s infinite alternate ease-in-out;
}
@keyframes badgeGlow {
    from { transform: scale(1); opacity: 0.90; }
    to { transform: scale(1.05); opacity: 1; }
}

/* Button Ripple */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.35);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: 0.5s;
}
.btn:active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(14);
}

/* Soft Glow Hover */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,123,255,0.25);
    transition: 0.3s ease;
   }
.glass-card {
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.25);
    transition: 0.3s ease;
}
.glass-card:hover {
    background: rgba(255,255,255,0.55);
}
.loading-spinner {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    z-index: 999;
    display: none;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid #ddd;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
