/**
 * Glory Games Stripe Cart & Checkout Styles
 * Styling for cart, checkout, and payment components
 */

/* Notification System */
.gg-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gg-notification.show {
    transform: translateX(0);
}

.gg-notification.success {
    background: linear-gradient(45deg, #22c55e, #16a34a);
}

.gg-notification.error {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.gg-notification.info {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Cart Container */
.cart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(132, 255, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(132, 255, 0, 0.2);
}

.cart-header h2 {
    color: #84ff00;
    font-size: 1.8rem;
    font-weight: 700;
}

.cart-count {
    color: #a855f7;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #a855f7;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #d8b4fe;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-cart h3 {
    color: #84ff00;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-cart p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Cart Items */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(132, 255, 0, 0.05);
    border-color: rgba(132, 255, 0, 0.3);
    transform: translateY(-2px);
}

.item-image {
    font-size: 2.5rem;
    text-align: center;
}

.item-details h4 {
    color: #84ff00;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.item-type {
    color: #a855f7;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.3rem;
}

.item-quantity button {
    background: rgba(132, 255, 0, 0.2);
    border: 1px solid #84ff00;
    color: #84ff00;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.item-quantity button:hover {
    background: #84ff00;
    color: #000;
    transform: scale(1.1);
}

.item-quantity span {
    color: #fff;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-price {
    color: #84ff00;
    font-weight: 700;
    font-size: 1.1rem;
}

.remove-item {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 700;
}

.remove-item:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(132, 255, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #d8b4fe;
}

.summary-row.total {
    border-top: 1px solid rgba(132, 255, 0, 0.2);
    padding-top: 0.8rem;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #84ff00;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #84ff00, #a0ff20);
    color: #000;
    border: 2px solid #84ff00;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #a0ff20, #84ff00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(132, 255, 0, 0.4);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 2px solid #a855f7;
}

.btn-secondary:hover {
    background: #a855f7;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* Quick Purchase Button */
.quick-purchase-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    border: 2px solid #ff6b35;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-purchase-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ffb347);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.quick-purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.quick-purchase-btn:hover::before {
    left: 100%;
}

/* Cart Icon in Header */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(132, 255, 0, 0.1);
    transform: scale(1.1);
}

.cart-icon i {
    font-size: 1.5rem;
    color: #84ff00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.8rem;
    }
    
    .item-quantity,
    .item-price {
        grid-column: 2 / -1;
        justify-self: start;
        margin-top: 0.5rem;
    }
    
    .remove-item {
        grid-column: -1;
        grid-row: 1;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .gg-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .gg-notification.show {
        transform: translateY(0);
    }
}

/* Checkout Integration Styles */
.checkout-integration {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(132, 255, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: rgba(132, 255, 0, 0.05);
    border-color: rgba(132, 255, 0, 0.3);
    transform: translateY(-2px);
}

.payment-method.selected {
    background: rgba(132, 255, 0, 0.1);
    border-color: #84ff00;
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #84ff00;
}

.payment-method h4 {
    color: #fff;
    margin-bottom: 0.3rem;
}

.payment-method p {
    color: #a855f7;
    font-size: 0.9rem;
}
