/* Custom Styles for N-Audio */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-img-top {
    opacity: 0.9;
}

/* Cart Styles */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.add-to-cart {
    position: relative;
    overflow: hidden;
}

.add-to-cart:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart:hover:before {
    left: 100%;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Payment QR Code */
.payment-qr {
    max-width: 300px;
    margin: 0 auto;
    border: 5px solid #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badge Styles */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-content .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
    }
    
    /* Product Cards Mobile */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Cart Mobile */
    .cart-item .row > div {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .quantity-input {
        width: 60px;
        margin: 0 auto;
    }
    
    /* Stats Section Mobile */
    .stats-highlight-card {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .stats-highlight-card .display-4 {
        font-size: 2.5rem;
    }
    
    /* Features Section Mobile */
    .feature-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    /* Hero Icons Grid Mobile */
    .hero-icons .row {
        margin: 0 -0.5rem;
    }
    
    .hero-icons .col-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    /* Alert Banner Mobile */
    .alert .container .row {
        text-align: center;
    }
    
    .alert .col-md-8 {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    /* Button Mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section Spacing Mobile */
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    /* Typography Mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    .hero-section .display-3 {
        font-size: 1.8rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .product-card .btn {
        width: 100%;
    }
    
    .stats-highlight-card .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem !important;
    }
    
    .feature-card .card-body {
        padding: 1.5rem 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success States */
.success-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-loading .loading {
    margin-right: 5px;
}
