/**
 * Bazi Center Shop - Styles
 */

/* Shop Items Layout */
.bcs-shop-items {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.bcs-items-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.bcs-items-grid.bcs-cols-1 {
    grid-template-columns: 1fr;
}

.bcs-items-grid.bcs-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bcs-items-grid.bcs-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bcs-items-grid.bcs-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 968px) {
    .bcs-items-grid.bcs-cols-3,
    .bcs-items-grid.bcs-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bcs-items-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Item Card */
.bcs-item-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bcs-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.bcs-item-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bcs-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* Price Display */
.bcs-item-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.bcs-price-amount {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
}

.bcs-price-currency {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Purchase Button */
.bcs-purchase-btn {
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bcs-purchase-btn:hover {
    background: #f0f4ff;
    transform: scale(1.02);
}

.bcs-purchase-btn:active {
    transform: scale(0.98);
}

.bcs-purchase-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bcs-btn-text {
    display: inline-block;
}

.bcs-btn-loading {
    display: none;
}

.bcs-purchase-btn.loading .bcs-btn-text {
    display: none;
}

.bcs-purchase-btn.loading .bcs-btn-loading {
    display: inline-block;
}

/* Loading Spinner */
.bcs-spinner {
    width: 20px;
    height: 20px;
    animation: bcs-rotate 1s linear infinite;
}

.bcs-spinner-path {
    stroke: #667eea;
    stroke-linecap: round;
    animation: bcs-dash 1.5s ease-in-out infinite;
}

@keyframes bcs-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bcs-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* No Items Message */
.bcs-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Payment Result Page */
.bcs-payment-result {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.bcs-result-container {
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.bcs-result-success,
.bcs-result-failure {
    text-align: center;
}

/* Result Icon */
.bcs-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcs-icon-success {
    background: #d4edda;
}

.bcs-icon-success svg {
    width: 40px;
    height: 40px;
    color: #28a745;
}

.bcs-icon-failure {
    background: #f8d7da;
}

.bcs-icon-failure svg {
    width: 40px;
    height: 40px;
    color: #dc3545;
}

/* Result Text */
.bcs-result-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.bcs-result-success .bcs-result-title {
    color: #28a745;
}

.bcs-result-failure .bcs-result-title {
    color: #dc3545;
}

.bcs-result-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
}

/* Result Details */
.bcs-result-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: right;
}

.bcs-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.bcs-detail-row:last-child {
    border-bottom: none;
}

.bcs-detail-label {
    font-weight: 600;
    color: #495057;
}

.bcs-detail-value {
    color: #212529;
    font-weight: 500;
}

/* Result Notes */
.bcs-result-note,
.bcs-result-info {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 16px 0;
}

/* Action Buttons */
.bcs-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.bcs-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bcs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.bcs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.bcs-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.bcs-btn-secondary:hover {
    background: #dee2e6;
    color: #495057;
}

/* RTL Support */
[dir="rtl"] .bcs-item-price {
    flex-direction: row-reverse;
}

[dir="rtl"] .bcs-result-details {
    direction: rtl;
}
