/* ==========================================================================
   CART PAGE STYLES - Hangi Kaynak Takvim App
   ========================================================================== */

/* Cart Page Container */
.cart-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 6rem 2rem 4rem;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cart-title i {
    color: #f97316;
}

.cart-count {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Empty Cart */
.empty-cart {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-cart h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.back-to-home-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-home-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.cart-item:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    transform: translateX(5px);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.cart-item-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-type {
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
}

.cart-item-type.tyt {
    background: #3b82f6;
}

.cart-item-type.ayt {
    background: #ef4444;
}

.cart-item-type.lgs {
    background: #10b981;
}

.cart-item-type.tyt-ayt {
    background: #8b5cf6;
}

.cart-item-date {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-scope {
    color: #6b7280;
    font-size: 0.9rem;
}

.remove-from-cart-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-from-cart-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Cart Actions */
.cart-actions {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-actions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-all-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-all-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.submit-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.clear-cart-btn {
    flex: 1;
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.clear-cart-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Add to Cart Modal */
.add-to-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.add-to-cart-modal.show {
    display: flex;
}

.add-to-cart-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.add-to-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.add-to-cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 1rem;
}

.add-to-cart-message {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

.add-to-cart-buttons {
    display: flex;
    gap: 1rem;
}

.go-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.go-to-cart-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.continue-shopping-btn {
    flex: 1;
    background: white;
    color: #374151;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #f9fafb;
    border-color: #cbd5e0;
    color: #1a202c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-page {
        padding: 5rem 1rem 2rem;
    }

    .cart-header {
        padding: 1.5rem;
    }

    .cart-title {
        font-size: 1.5rem;
    }

    .cart-items {
        padding: 1.5rem;
    }

    .cart-item {
        padding: 1rem;
    }

    .cart-item-header {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-actions-buttons {
        flex-direction: column;
    }

    .submit-all-btn,
    .clear-cart-btn {
        width: 100%;
    }

    .add-to-cart-content {
        padding: 2rem 1.5rem;
    }

    .add-to-cart-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 4.5rem 0.8rem 1.5rem;
    }

    .cart-header {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .cart-title {
        font-size: 1.3rem;
    }

    .cart-items {
        padding: 1rem;
        border-radius: 15px;
    }

    .cart-actions {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .submit-all-btn,
    .clear-cart-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

@media (max-width: 768px) {
    .toast-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
}

