﻿/* ============================================================
   HIROSHIMA — STORE STYLES (Valorant Dark Theme)
   Renk paleti: Kırmızı (#fd4556), Gold (#ffcc00), Koyu ton
============================================================ */

.store-section {
    min-height: 100vh;
    padding: 130px 40px 80px;
    position: relative;
}

.store-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header ── */
.store-header {
    text-align: center;
    margin-bottom: 60px;
    animation: storeFadeIn 0.8s ease both;
}

.store-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.store-label .label-line {
    width: 40px;
    height: 1px;
    background: var(--accent-red);
}
.store-label span:nth-child(2) {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 600;
}

.store-title {
    font-size: 3.2rem;
    font-family: 'Teko', sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.store-title .accent {
    color: var(--accent-red);
}

.store-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Grid ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ── Product Card ── */
.store-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    cursor: pointer;
    animation: storeCardIn 0.6s ease both;
}

.store-card:nth-child(1) { animation-delay: 0.1s; }
.store-card:nth-child(2) { animation-delay: 0.2s; }
.store-card:nth-child(3) { animation-delay: 0.3s; }
.store-card:nth-child(4) { animation-delay: 0.4s; }
.store-card:nth-child(5) { animation-delay: 0.5s; }
.store-card:nth-child(6) { animation-delay: 0.6s; }

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(253, 69, 86, 0.15);
    border-color: rgba(253, 69, 86, 0.3);
}

/* Top red line accent */
.store-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-dark-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.store-card:hover::before {
    transform: scaleX(1);
}

/* Image */
.store-card-image {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.store-card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95), transparent);
}

/* Duration badge */
.store-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(253, 69, 86, 0.9);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 3;
    text-transform: uppercase;
}

/* Body */
.store-card-body {
    padding: 25px;
}

.store-card-name {
    font-size: 1.5rem;
    font-family: 'Teko', sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.store-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 44px;
}

/* Footer */
.store-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-price {
    font-size: 1.6rem;
    font-family: 'Teko', sans-serif;
    color: var(--accent-red);
    font-weight: 600;
}

.store-buy-btn {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 9px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-buy-btn:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(253, 69, 86, 0.4);
}

/* ── Empty state ── */
.store-empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 80px 20px;
    color: var(--text-secondary);
}
.store-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* ── Alert Box ── */
.alert-box {
    display: none;
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    color: white;
    z-index: 9999;
    font-weight: 500;
    font-size: 0.95rem;
    animation: alertSlideIn 0.4s ease both;
    backdrop-filter: blur(10px);
}
.alert-success {
    background: rgba(253, 69, 86, 0.85);
    border: 1px solid var(--accent-red);
}
.alert-error {
    background: rgba(180, 40, 50, 0.85);
    border: 1px solid #a8303c;
}

/* ── Modal (Purchase Confirmation) ── */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid rgba(253, 69, 86, 0.3);
    max-width: 420px;
    margin: 0 auto;
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(253, 69, 86, 0.1);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.modal-overlay.active .modal-box {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}
.modal-close:hover {
    color: var(--accent-red);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(253, 69, 86, 0.1);
    border: 1px solid rgba(253, 69, 86, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.modal-title {
    font-size: 1.8rem;
    font-family: 'Teko', sans-serif;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
}

.modal-price {
    font-size: 2.5rem;
    font-family: 'Teko', sans-serif;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-btn-confirm {
    flex: 1;
    background: var(--accent-red);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-btn-confirm:hover {
    background: #ff2a3f;
    box-shadow: 0 0 25px rgba(253, 69, 86, 0.5);
}
.modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Animations ── */
@keyframes storeFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .store-section { padding: 110px 20px 60px; }
    .store-title { font-size: 2.4rem; }
    .store-grid { grid-template-columns: 1fr; gap: 20px; }
}
