/* 
FILE: assets/css/style.css
UPDATED CSS - Replace your current style.css with this
*/

:root {
    --bowling-primary: #1a365d;
    --bowling-secondary: #2d5a87;
    --bowling-accent: #f56500;
    --bowling-light: #f7fafc;
    --bowling-dark: #2d3748;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bowling-light) 0%, #e2e8f0 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bowling-primary) 0%, var(--bowling-secondary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 15px;
    margin: -30px auto 40px;
    max-width: 800px;
    padding: 20px;
}

.category-btn {
    background: var(--bowling-light);
    border: 2px solid transparent;
    color: var(--bowling-primary);
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 5px;
    cursor: pointer;
}

.category-btn:hover {
    background: var(--bowling-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 101, 0, 0.3);
}

.category-btn.active {
    background: var(--bowling-primary);
    color: white;
    border-color: var(--bowling-accent);
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
/* Enhanced product styling */
.prime-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff9900;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.product-image-container {
    position: relative;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
}

.product-features {
    margin-top: 4px;
    color: #666;
    font-size: 0.75rem;
}

.daily-deal-card {
    position: relative;
    background: linear-gradient(135deg, #fff3cd 0%, #fff 100%);
    border: 2px solid #f0ad4e;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.deal-badge {
    background: #d9534f;
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.deal-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sale-price {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.1rem;
}

.savings {
    color: #5cb85c;
    font-weight: bold;
    font-size: 0.8rem;
}

.stars {
    color: #ffc107;
    margin-right: 4px;
}

.review-count {
    color: #666;
    font-size: 0.8rem;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Ad Cards */
.ad-card {
    border: 2px solid var(--bowling-accent) !important;
    background: linear-gradient(135deg, #fff 0%, #fef5e7 100%) !important;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay, .ad-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.ad-overlay {
    background: var(--bowling-accent);
    width: auto;
    height: auto;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-card:hover .play-overlay {
    background: var(--bowling-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bowling-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.video-description {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ad-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Sidebar Styles */
.sidebar-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Premium CTA */
.premium-cta {
    background: linear-gradient(135deg, var(--bowling-accent) 0%, #ff7f00 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.premium-cta h5 {
    margin-bottom: 10px;
    font-weight: 700;
}

.premium-cta .btn {
    background: white;
    color: var(--bowling-accent);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.premium-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Affiliate Products */
.affiliate-product {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.affiliate-product:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    border-color: var(--bowling-accent);
}

.affiliate-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.affiliate-info {
    flex-grow: 1;
}

.affiliate-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--bowling-primary);
    font-weight: 600;
    line-height: 1.3;
}

.affiliate-price {
    color: var(--bowling-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Ad Containers */
.sidebar-ad, .banner-ad {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.banner-ad {
    margin: 30px 0;
}

/* Newsletter */
.newsletter-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.newsletter-section h6 {
    color: var(--bowling-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-section .input-group {
    margin-top: 15px;
}

.newsletter-section .btn-primary {
    background: var(--bowling-accent);
    border-color: var(--bowling-accent);
}

.newsletter-section .btn-primary:hover {
    background: #e55a00;
    border-color: #e55a00;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bowling-light);
    border-top: 4px solid var(--bowling-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #e53e3e;
    background: #fed7d7;
    border-radius: 15px;
    margin: 20px 0;
}

/* Footer */
.footer {
    background: var(--bowling-primary);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

/* Video Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: var(--bowling-primary);
    color: white;
    border-bottom: none;
}

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

#video-products {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

#video-products h6 {
    color: var(--bowling-primary);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .category-nav {
        margin: -20px 15px 30px;
        padding: 15px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: inline-block;
        margin: 3px;
    }
    
    .video-card {
        margin-bottom: 20px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .premium-cta {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-content {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .affiliate-product {
        padding: 10px;
    }
    
    .affiliate-product img {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .affiliate-info h6 {
        font-size: 0.85rem;
    }
    
    .affiliate-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .category-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .video-thumbnail img {
        height: 180px;
    }
    
    .col-lg-9, .col-lg-3 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Additional Utility Classes */
.text-bowling-primary {
    color: var(--bowling-primary) !important;
}

.text-bowling-accent {
    color: var(--bowling-accent) !important;
}

.bg-bowling-primary {
    background-color: var(--bowling-primary) !important;
}

.bg-bowling-accent {
    background-color: var(--bowling-accent) !important;
}

.border-bowling-accent {
    border-color: var(--bowling-accent) !important;
}

/* Featured Equipment Section Improvements */
.featured-equipment h6 {
    color: var(--bowling-primary);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-equipment .text-muted {
    font-size: 0.75rem;
    margin-top: 10px;
    font-style: italic;
}