/* static/css/checkout.css */

/* Checkout Page Specific Styles */

/* Body background override for checkout page */
/* This will override the global body background from style.css */
body {
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 25%, #E0F6FF 50%, #F0F8FF 75%, #87CEEB 100%);
}

/* Title Box */
.all-title-box {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 50%, #B0E0E6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.all-title-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    background-size: cover;
}

.all-title-box h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 4px 8px rgba(0,0,0,0.3); }
    to { text-shadow: 0 4px 20px rgba(255,255,255,0.5); }
}

/* Main checkout container */
.checkout-box-main {
    padding: 60px 0;
    position: relative;
}

/* Login section for returning customers */
.new-account-login {
    margin-bottom: 40px;
}

.new-account-login .title-left h3 {
    color: #4682B4;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.new-account-login .title-left h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4682B4, #87CEEB);
    border-radius: 2px;
}

.new-account-login p {
    font-size: 1.1rem;
    color: #333;
}

.new-account-login a {
    color: #4682B4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-account-login a:hover {
    color: #87CEEB;
    text-shadow: 0 2px 4px rgba(135, 206, 235, 0.3);
}

/* Card styling */
.odr-box, .order-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.odr-box::before, .order-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.odr-box:hover::before, .order-box:hover::before {
    left: 100%;
}

.odr-box:hover, .order-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(135, 206, 235, 0.3);
}

.title-left h3 {
    color: #4682B4;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
}

.title-left h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4682B4, #87CEEB);
    border-radius: 2px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Cart items styling */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.media {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.media:hover {
    background: rgba(135, 206, 235, 0.1);
    transform: translateX(5px);
}

.media-body a {
    color: #4682B4;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.media-body a:hover {
    color: #87CEEB;
    text-shadow: 0 2px 4px rgba(135, 206, 235, 0.3);
}

.small.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Order summary styling */
.order-box .d-flex {
    margin-bottom: 15px;
    padding: 10px 0;
    align-items: center;
}

.order-box h4, .order-box h5 {
    color: #333;
    margin: 0;
    font-weight: 500;
}

.font-weight-bold {
    color: #4682B4 !important;
    font-weight: 600 !important;
}

.gr-total {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(176, 224, 230, 0.1) 100%);
    border-radius: 10px;
    padding: 20px 15px;
    margin: 20px 0;
}

.gr-total h5 {
    color: #4682B4;
    font-weight: 700;
    font-size: 1.4rem;
}

.gr-total .h5 {
    color: #4682B4;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Button styling */
.btn.hvr-hover {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 50%, #B0E0E6 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn.hvr-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn.hvr-hover:hover::before {
    left: 100%;
}

.btn.hvr-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #5a9bd4 0%, #87CEEB 50%, #B0E0E6 100%);
}

.btn.hvr-hover:active {
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .all-title-box h2 {
        font-size: 2rem;
    }
    
    .all-title-box {
        padding: 60px 0;
    }
    
    .odr-box, .order-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .title-left h3 {
        font-size: 1.5rem;
    }
    
    .btn.hvr-hover {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(135, 206, 235, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
