/* DriveGo Enhanced Typography and UI System */

/* Import better fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Global Typography Reset */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Headings use Space Grotesk */
h1, h2, h3, h4, h5, h6, 
.logo-text, 
.hero-title, 
.section-title,
.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* Logo specific font */
.drivego-logo, 
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Enhanced Button System - No Transparency, Solid Colors Only */
.btn, 
.cta-btn, 
.auth-btn, 
.mobile-auth-btn,
.floating-btn,
button:not(.close):not(.navbar-toggler):not(.mobile-menu-btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-color) !important;
    border: none !important;
    border-radius: 50px;
    color: var(--bg-color) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

/* Button Hover Effect - Gradient Animation */
.btn::before, 
.cta-btn::before, 
.auth-btn::before, 
.mobile-auth-btn::before,
.floating-btn::before,
button:not(.close):not(.navbar-toggler):not(.mobile-menu-btn)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.btn:hover::before, 
.cta-btn:hover::before, 
.auth-btn:hover::before, 
.mobile-auth-btn:hover::before,
.floating-btn:hover::before,
button:not(.close):not(.navbar-toggler):not(.mobile-menu-btn):hover::before {
    left: 100%;
}

.btn:hover, 
.cta-btn:hover, 
.auth-btn:hover, 
.mobile-auth-btn:hover,
.floating-btn:hover,
button:not(.close):not(.navbar-toggler):not(.mobile-menu-btn):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
    background: var(--accent-hover) !important;
}

/* Secondary Button Style */
.btn-secondary,
.hero-btn.secondary {
    background: var(--card-bg) !important;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
}

.btn-secondary:hover,
.hero-btn.secondary:hover {
    background: var(--accent-color) !important;
    color: var(--bg-color) !important;
}

/* Enhanced Dropdown Styles */
.dropdown-menu,
.form-select,
select {
    background: var(--card-bg) !important;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background: var(--accent-color) !important;
    color: var(--bg-color) !important;
    transform: translateX(5px);
}

/* Enhanced Form Elements */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    background: var(--card-bg) !important;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.form-control:focus,
input:focus,
textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Enhanced Card System - Solid Backgrounds */
.card,
.feature-card,
.route-card,
.community-card,
.service-card,
.d2c_service_card,
.stats-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover,
.feature-card:hover,
.route-card:hover,
.community-card:hover,
.service-card:hover,
.d2c_service_card:hover,
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

/* Footer Background */
.footer,
.d2c_footer_wrapper,
footer {
    background: var(--secondary-color) !important;
    border-top: 1px solid var(--border-color);
}

/* Enhanced Notification System - Bottom Right */
.notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 420px;
}

.notification {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.notification.removing {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
}

/* Notification Types */
.notification-success {
    border-color: #22c55e;
}

.notification-success .notification-icon {
    color: #22c55e;
}

.notification-error {
    border-color: #ef4444;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-warning {
    border-color: #f59e0b;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-info {
    border-color: var(--accent-color);
}

.notification-info .notification-icon {
    color: var(--accent-color);
}

/* Animation Classes for All Elements */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Floating Input Labels */
.floating-input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 8px;
    z-index: 1;
}

.floating-label.active {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.input-focused .floating-label {
    color: var(--accent-color);
}

/* Select Animation */
.select-changed {
    animation: selectPulse 0.3s ease;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Counter Complete Animation */
.counter-complete {
    animation: countComplete 0.5s ease;
}

@keyframes countComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--accent-color); }
    100% { transform: scale(1); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .btn, 
    .cta-btn, 
    .auth-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .floating-input-wrapper {
        margin-bottom: 20px;
    }
}