/* =============================
   CART PAGE STYLES
   Professional UX Design - Consistent with Pricing Page
=============================== */

/* Color Variables - Pricing ile aynı */
:root {
    /* Primary Brand Colors */
    --primary-indigo: #6366f1;
    --primary-indigo-light: #818cf8;
    --primary-indigo-dark: #4f46e5;
    
    /* Accent Colors */
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-teal: #14b8a6;
    --accent-teal-light: #5eead4;
    
    /* Neutral Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Glass & Blur Effects */
    --glass-bg: rgba(248, 250, 252, 0.08);
    --glass-border: rgba(248, 250, 252, 0.12);
    --glass-hover: rgba(99, 102, 241, 0.1);
    
    /* Cart Specific Colors */
    --cart-success: #10b981;
    --cart-warning: #f59e0b;
    --cart-error: #ef4444;
}

/* Reset and Base Styles */
.cart-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cart-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #16213e 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.cart-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-indigo), var(--accent-purple));
    opacity: 0.1;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.bg-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-indigo-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-indigo-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== CART CONTENT ===== */
.cart-content-section {
    padding: 80px 0;
    position: relative;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Panel Styles */
.cart-items-panel,
.order-summary-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.panel-header {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 32px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-icon {
    font-size: 1.5rem;
}

/* ===== EMPTY CART STATE ===== */
.empty-cart {
    padding: 60px 32px;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.empty-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-indigo-dark));
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

/* ===== CART ITEM STYLES ===== */
.cart-item {
    border-bottom: 1px solid var(--glass-border);
    animation: slideInUp 0.6s ease-out;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-content {
    padding: 32px;
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.item-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-indigo), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.remove-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== FEATURES GRID ===== */
.item-features {
    margin-bottom: 24px;
}

.features-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-check {
    color: var(--accent-emerald);
    font-weight: bold;
}

/* ===== PRICING SECTION ===== */
.item-pricing {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-details {
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.savings-badge {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-light));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
}

/* ===== BILLING TOGGLE (SMALL) ===== */
.billing-toggle-cart {
    margin-left: 24px;
}

.toggle-container-small {
    position: relative;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    width: 140px;
}

.toggle-container-small input {
    display: none;
}

.toggle-container-small label {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.toggle-slider-small {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-indigo-dark));
    border-radius: 8px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle-container-small input:checked + label {
    color: white;
}

.toggle-container-small input:nth-child(3):checked ~ .toggle-slider-small {
    transform: translateX(100%);
}

/* ===== ORDER SUMMARY ===== */
.summary-content {
    padding: 32px;
}

.summary-empty {
    text-align: center;
    padding: 40px 0;
}

.summary-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.summary-empty-text {
    color: var(--text-secondary);
}

.summary-details {
    space-y: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total {
    border-top: 2px solid var(--glass-border);
    margin-top: 16px;
    padding-top: 16px;
}

.summary-row.total .summary-label,
.summary-row.total .summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

.summary-period {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ===== CART ACTIONS ===== */
.cart-actions {
    padding: 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(99, 102, 241, 0.02);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-light));
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.badge-icon {
    color: var(--accent-emerald);
}

.guarantee-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.guarantee-icon {
    color: var(--accent-emerald);
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 60px 0;
    background: rgba(99, 102, 241, 0.03);
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.trust-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.trust-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .order-summary-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .item-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .item-pricing {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .billing-toggle-cart {
        margin-left: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .cart-hero {
        padding: 80px 0 60px;
    }
    
    .cart-content-section {
        padding: 60px 0;
    }
    
    .item-content,
    .summary-content,
    .cart-actions {
        padding: 24px;
    }
    
    .panel-header {
        padding: 20px 24px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
