/* Budget Cards Universal Styling - Green/Orange Theme Design System */
/* CARDS ONLY - Budget Section Header handled by camera-budget-section.css */

/* Budget Section Container */
.budget-section,
.budget-cards-section {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.9) 50%,
        rgba(51, 65, 85, 0.95) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px 0;
    min-height: 100vh;
}

.budget-section::before,
.budget-cards-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(22, 163, 74, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Budget Product Card */
.budget-card,
.budget-product-card {
    background: linear-gradient(145deg, 
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.85) 50%,
        rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(34, 197, 94, 0.1);
    transform-style: preserve-3d;
}

.budget-card::before,
.budget-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.05) 0%,
        rgba(249, 115, 22, 0.03) 50%,
        rgba(22, 163, 74, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
}

.budget-card:hover,
.budget-product-card:hover {
    transform: translateY(-16px) rotateX(2deg);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(34, 197, 94, 0.15);
}

.budget-card:hover::before,
.budget-product-card:hover::before {
    opacity: 1;
}

/* Budget Badges System */
.budget-brand-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.budget-new-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

/* Color-coded specification boxes - Green/Orange Theme */
.budget-resolution-box {
    border-left: 3px solid #22c55e;
}

.budget-resolution-box:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.budget-resolution-box .spec-main-value {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.budget-video-box {
    border-left: 3px solid #16a34a;
}

.budget-video-box:hover {
    border-color: #16a34a;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.2);
}

.budget-video-box .spec-main-value {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.budget-price-box {
    border-left: 3px solid #f97316;
}

.budget-price-box:hover {
    border-color: #f97316;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

.budget-price-box .spec-main-value {
    color: #fb923c;
    text-shadow: 0 0 15px rgba(251, 146, 60, 0.4);
    font-size: 1.3rem;
}

/* Additional spec box types */
.budget-ibis-box {
    border-left: 3px solid #15803d;
}

.budget-ibis-box:hover {
    border-color: #15803d;
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.2);
}

.budget-ibis-box .spec-main-value {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.budget-af-box {
    border-left: 3px solid #14532d;
}

.budget-af-box:hover {
    border-color: #14532d;
    box-shadow: 0 8px 25px rgba(20, 83, 45, 0.2);
}

.budget-af-box .spec-main-value {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.budget-battery-box {
    border-left: 3px solid #ea580c;
}

.budget-battery-box:hover {
    border-color: #ea580c;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.2);
}

.budget-battery-box .spec-main-value {
    color: #f97316;
    text-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.budget-burst-box {
    border-left: 3px solid #15803d;
}

.budget-burst-box:hover {
    border-color: #15803d;
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.2);
}

.budget-burst-box .spec-main-value {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.budget-weight-box {
    border-left: 3px solid #14532d;
}

.budget-weight-box:hover {
    border-color: #14532d;
    box-shadow: 0 8px 25px rgba(20, 83, 45, 0.2);
}

.budget-weight-box .spec-main-value {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Enhanced Rating Section - Green/Orange Theme */
.budget-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.12) 0%,
        rgba(249, 115, 22, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    margin-bottom: 0; /* Removed all spacing */
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(34, 197, 94, 0.1),
        0 3px 12px rgba(34, 197, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.budget-rating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(34, 197, 94, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.budget-rating:hover::before {
    opacity: 1;
}

.budget-rating .rating-score {
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    position: relative;
    z-index: 2;
}

/* Budget Buttons - Green/Orange Theme */
.budget-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.budget-btn-primary::before {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.budget-btn-primary:hover {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* Amazon Button Styles */
.amazon-btn,
.budget-amazon-btn {
    cursor: pointer; /* Hand cursor on hover */
}

.amazon-btn:hover,
.budget-amazon-btn:hover {
    cursor: pointer; /* Ensure hand cursor on hover */
}

.budget-amazon-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.budget-amazon-btn:hover {
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
    color: #fed7aa;
}

/* Animation Keyframes - Green/Orange Theme */
@keyframes budgetCardGlow {
    0%, 100% { 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 60px rgba(34, 197, 94, 0.1);
    }
    50% { 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                    0 0 80px rgba(34, 197, 94, 0.2);
    }
}

.budget-card.featured {
    animation: budgetCardGlow 3s ease-in-out infinite;
}

@keyframes budgetSpecGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25);
    }
}

.budget-card.featured .spec-box {
    animation: budgetSpecGlow 3s ease-in-out infinite;
}

/* ============================================
   CLICKABLE CARD LINK WRAPPER
   ============================================ */
.product-card .card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    line-height: 0; /* Remove line height spacing */
}

.product-card .card-link-wrapper:hover {
    transform: translateY(-2px);
}

.product-card .card-link-wrapper:active {
    transform: translateY(0);
}

.product-card .card-link-wrapper:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Prevent double transform on card hover */
.product-card:hover .card-link-wrapper {
    transform: none;
}

/* Make entire card feel clickable */
.product-card {
    cursor: pointer;
    position: relative;
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack vertically */
}

/* Make sure buttons stay interactive and on top */
.button-section {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    margin-top: 12px; /* Add margin-top instead of padding-top for spacing */
    padding: 0 20px 20px 20px; /* Remove top padding */
}

.button-section .primary-buttons {
    display: flex;
    gap: 10px; /* Gap between Details and Accessories buttons */
    margin-bottom: 10px; /* Spacing between primary buttons and Amazon button */
}

.button-section button,
.button-section a {
    pointer-events: auto;
    position: relative;
    cursor: pointer;
}

/* Ensure card content doesn't interfere with link */
.card-content {
    pointer-events: none;
    line-height: normal; /* Reset line height for content */
}

.card-link-wrapper * {
    pointer-events: none;
    line-height: normal; /* Reset line height for all children */
}

/* Re-enable pointer events for buttons */
.button-section,
.button-section * {
    pointer-events: auto;
}
