/* ===============================
   DEAL PAGE CSS - CLEAN VERSION
   =============================== */

/* Fix dropdown functionality */
.dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.dropdown-menu {
    pointer-events: auto !important;
    z-index: 1050 !important;
}

.dropdown-item {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* CSS Variables for Light/Dark Mode */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    /* Dark Mode Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-white: #ffffff;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.deal-page-wrapper {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ===============================
   HERO SECTION
   =============================== */

.deal-hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    overflow: hidden;
}

.deal-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.deal-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    z-index: -1;
}

.deal-hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

/* Badge */
.deal-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-text {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

/* Hero Title */
.deal-hero-title {
    margin-bottom: 1rem;
}

.deal-main-title {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.deal-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
}

.deal-hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* Hero Actions */
.deal-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.deal-hero-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.deal-hero-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.deal-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.deal-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.deal-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ===============================
   HERO ILLUSTRATION
   =============================== */

.deal-hero-illustration {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.deal-animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

.discount-percent {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.discount-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: float 4s ease-in-out infinite;
    opacity: 0.7;
}

.floating-icon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.gift-icon {
    top: 35%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.tag-icon {
    top: 45%;
    right: 5%;
    animation-delay: 1.2s;
    animation-duration: 4.2s;
}

.star-icon {
    bottom: 35%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 3.8s;
}

/* Service Icons */
.service-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.service-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: float 5s ease-in-out infinite;
    opacity: 0.6;
}

.service-icon i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.vps-icon {
    top: 25%;
    left: 25%;
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.hosting-icon {
    top: 40%;
    left: 20%;
    animation-delay: 1.8s;
    animation-duration: 5.2s;
}

.email-icon {
    bottom: 40%;
    left: 30%;
    animation-delay: 3.2s;
    animation-duration: 4.8s;
}

.proxy-icon {
    bottom: 25%;
    left: 25%;
    animation-delay: 2.8s;
    animation-duration: 5.5s;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 25px 50px rgba(255, 107, 53, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-8px) translateX(3px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-12px) translateX(-2px);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-6px) translateX(4px);
        opacity: 0.9;
    }
}

/* ===============================
   DEALS SECTION
   =============================== */

.deals-section {
    position: relative;
    padding: 5rem 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
}

.deals-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.deals-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
}

.deals-section .container {
    position: relative;
    z-index: 2;
}

.deals-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.deals-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Deal Cards */
.deal-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.deal-image-container {
    position: relative;
    overflow: hidden;
}

.deal-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.deal-banner-link:hover .deal-image {
    transform: scale(1.05);
}

.deal-content {
    padding: 1.5rem;
}

.deal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.deal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.deal-description p {
    margin-bottom: 1rem;
}

.deal-description ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.deal-description li {
    margin-bottom: 0.5rem;
}

.deal-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.deal-date {
    display: flex;
    align-items: center;
}

.deal-actions {
    margin-top: auto;
}

.btn-deal {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Error and No Deals States */
.error-message,
.no-deals-message {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.error-message i,
.no-deals-message i {
    margin-bottom: 1rem;
}

/* ===============================
   DARK MODE STYLES
   =============================== */

body.dark-mode .deal-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 70%, #475569 100%);
}

body.dark-mode .deal-hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 70%, #475569 100%);
}

body.dark-mode .deal-badge .badge-text {
    background: rgba(59, 130, 246, 0.2);
    color: #8ba4ff;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

body.dark-mode .deal-main-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .deal-subtitle {
    color: #cbd5e0;
}

body.dark-mode .deal-hero-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .deal-hero-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

body.dark-mode .deal-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
}

body.dark-mode .deal-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.dark-mode .deal-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

body.dark-mode .deals-title {
    color: #f9fafb;
}

body.dark-mode .deals-subtitle {
    color: #cbd5e0;
}

body.dark-mode .deal-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .deal-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .deal-title {
    color: #f9fafb;
}

body.dark-mode .deal-description {
    color: #cbd5e0;
}

body.dark-mode .deal-description a {
    color: #60a5fa;
}

body.dark-mode .deal-description a:hover {
    color: #93c5fd;
}

body.dark-mode .deal-meta {
    color: #9ca3af;
}

body.dark-mode .error-message,
body.dark-mode .no-deals-message {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================
   LIGHT MODE STYLES
   =============================== */

body.light-mode .deal-hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

body.light-mode .deal-hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

body.light-mode .deal-badge .badge-text {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light-mode .deal-main-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.light-mode .deal-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .deal-hero-description {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .deal-hero-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

body.light-mode .deal-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
}

body.light-mode .deal-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.light-mode .deal-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

body.light-mode .deals-title {
    color: #1f2937;
}

body.light-mode .deals-subtitle {
    color: #4b5563;
}

body.light-mode .deal-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .deal-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .deal-title {
    color: #1f2937;
}

body.light-mode .deal-description {
    color: #4b5563;
}

body.light-mode .deal-description a {
    color: #2563eb;
}

body.light-mode .deal-description a:hover {
    color: #1d4ed8;
}

body.light-mode .deal-meta {
    color: #6b7280;
}

body.light-mode .error-message,
body.light-mode .no-deals-message {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 768px) {
    .deal-main-title {
        font-size: 2.5rem;
    }
    
    .deal-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deal-hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero Illustration Mobile */
    .deal-hero-illustration {
        height: 300px;
        margin-top: 2rem;
    }
    
    .discount-badge {
        width: 150px;
        height: 150px;
    }
    
    .discount-percent {
        font-size: 2.5rem;
    }
    
    .discount-text {
        font-size: 0.8rem;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        opacity: 0.5;
    }
    
    .floating-icon i {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 30px;
        height: 30px;
        opacity: 0.4;
    }
    
    .service-icon i {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .deal-main-title {
        font-size: 2rem;
    }
    
    .deal-hero-section {
        padding: 2rem 0;
    }
    
    .deal-hero-actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* Hero Illustration Small Mobile */
    .deal-hero-illustration {
        height: 250px;
    }
    
    .discount-badge {
        width: 120px;
        height: 120px;
    }
    
    .discount-percent {
        font-size: 2rem;
    }
    
    .discount-text {
        font-size: 0.7rem;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
        opacity: 0.4;
    }
    
    .floating-icon i {
        font-size: 0.8rem;
    }
    
    .service-icon {
        width: 25px;
        height: 25px;
        opacity: 0.3;
    }
    
    .service-icon i {
        font-size: 0.7rem;
    }
    
    .deals-section {
        padding: 3rem 0;
    }
    
    .deals-title {
        font-size: 2rem;
    }
    
    .deals-subtitle {
        font-size: 1.1rem;
    }
    
    .deal-image {
        height: auto;
    }
}
