/* Custom CSS for Ansel's Ecommerce Demo */

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

body {
    padding-top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation Styles */
.translucent-nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation tabs styling - all same shape */
.navbar-nav .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin: 0 5px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 182, 193, 0.7);
    border: 1px solid rgba(255, 182, 193, 0.9);
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Cart icon - same shape as other nav items */
.navbar-nav .nav-item:last-child .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.navbar-nav .nav-item:last-child .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 10px !important;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Hero Section Styles */
.hero-section {
    height: 100vh;
    background-image: url('https://ansel.biz/assets/images/ansel_ecomm_landing.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-text-container {
    position: relative;
    z-index: 10;
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(50px);
    white-space: nowrap;
}

.hero-text.animate-in {
    animation: slideIn 1s ease-out forwards;
}

.hero-text.animate-out {
    animation: slideOut 0.5s ease-in forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Animation variants */
.slide-left {
    transform: translateX(-100px) !important;
}

.slide-right {
    transform: translateX(100px) !important;
}

.slide-top {
    transform: translateY(-100px) !important;
}

.slide-bottom {
    transform: translateY(100px) !important;
}

/* Product Grid Styles */
.product-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.color-selector {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover,
.color-option.selected {
    transform: scale(1.1);
    border-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Reviews Carousel */
.reviews-carousel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 0 15px;
    text-align: center;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* View Toggle Buttons */
.view-toggle {
    margin-bottom: 30px;
}

.view-toggle .btn {
    margin-right: 10px;
    border-radius: 20px;
}

/* Responsive Grid Classes */
.grid-large .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.grid-medium .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.grid-small .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.grid-list .product-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.grid-list .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.grid-list .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal Styles */
.product-modal .modal-content {
    background-color: #212529;
    color: white;
    border: 1px solid #495057;
}

.product-modal .modal-header {
    background-color: #343a40;
    border-bottom: 1px solid #495057;
}

.product-modal .modal-header .btn-close {
    filter: invert(1);
}

.product-modal .modal-body {
    padding: 30px;
    background-color: #212529;
}

.product-modal .form-label {
    color: white;
}

.product-modal .form-control,
.product-modal .form-select {
    background-color: #343a40;
    border: 1px solid #495057;
    color: white;
}

.product-modal .form-control:focus,
.product-modal .form-select:focus {
    background-color: #495057;
    border-color: #6c757d;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.quantity-input {
    max-width: 100px;
}

/* Checkout Styles */
.checkout-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.payment-option {
    flex: 1;
    min-width: 120px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.payment-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2rem;
    }
    
    .product-grid .col-6 {
        margin-bottom: 20px;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .payment-option {
        min-width: auto;
    }
    
    .grid-list .product-card {
        flex-direction: column;
    }
    
    .grid-list .product-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-text {
        font-size: 1.5rem;
    }
    
    .color-option {
        width: 25px;
        height: 25px;
    }
    
    .review-card {
        margin: 0 5px;
        padding: 20px;
    }
}

/* Animation for cart badge */
.cart-badge.bounce {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success/Error messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Social links hover effects */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Products page background */
body.products-page {
    background-image: url('https://ansel.biz/assets/images/ansel_ecomm_landing.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.products-page-body {
    background: transparent;
}

.products-page-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
}

.products-page-header h1,
.products-page-header p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.products-page-body .container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.products-page-body .container h3,
.products-page-body .container label,
.products-page-body .container .btn {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.products-page .form-control,
.products-page .form-select {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.products-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.products-page .form-control:focus,
.products-page .form-select:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}
