/* =====================================================
   GoldenServ — Offers Page Styles
   Extracted from offers/index.php inline <style>
   FIX C-04: Moved to external cacheable file
   ===================================================== */

/* ── Shared tier/how components (same as reseller) ── */
.reseller-tiers       { display: grid; gap: 24px; margin-bottom: 60px; }
.tier-card            { background: var(--navy-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; text-align: center; position: relative; transition: all var(--transition); }
.tier-card:hover      { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.tier-card.popular    { border-color: var(--border-gold); background: linear-gradient(145deg, var(--navy-soft), rgba(245, 166, 35, 0.04)); }
.tier-badge           { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); border-radius: 20px; padding: 4px 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.tier-name            { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--heading-color); margin-bottom: 8px; }
.tier-discount        { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; margin: 16px 0 4px; }
.tier-discount-label  { font-size: .8rem; color: var(--text-dim); margin-bottom: 20px; }
.tier-min             { font-size: .82rem; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0; }
.tier-features-list   { text-align: left; margin-bottom: 24px; }
.tier-features-list li { font-size: .85rem; color: var(--text-muted); padding: 6px 0; display: flex; align-items: center; gap: 8px; }

.reseller-how   { display: grid; gap: 20px; margin-top: 60px; }
.how-card       { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.how-step       { width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--navy); margin: 0 auto 16px; font-size: 1.1rem; }
.how-card h3    { font-size: .95rem; font-weight: 700; color: var(--heading-color); margin-bottom: 8px; }
.how-card p     { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── Offers Hero ── */
.offers-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 80%), var(--body-bg);
}

.offers-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--heading-color);
    letter-spacing: -1px;
}

.offers-title span { color: var(--gold); }

.offers-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Offers Grid & Cards ── */
.offers-grid {
    display: grid;
    gap: 30px;
    padding: 20px 0 80px;
    min-height: 400px;
}

.offer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--border-gold);
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ef4444;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 30px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.offer-name { font-size: 1.4rem; font-weight: 800; color: var(--heading-color); margin-bottom: 10px; }

.offer-price-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.offer-price { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.offer-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.offer-stock-wrapper {
    margin-top: auto;
    margin-bottom: 24px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-stock-icon {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.offer-stock-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%   { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.5);  opacity: 0; }
}

.offer-stock-text        { font-size: 0.9rem; font-weight: 600; color: #ef4444; }
.offer-stock-text strong { font-size: 1.1rem; }

/* ── Skeleton Loaders ── */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}

.sk-title { width: 60%;  height: 24px; background: var(--border); border-radius: 4px; margin-bottom: 20px; }
.sk-price { width: 40%;  height: 40px; background: var(--border); border-radius: 4px; margin-bottom: 40px; }
.sk-stock { width: 100%; height: 45px; background: var(--border); border-radius: 8px; margin-bottom: 24px; }
.sk-btn   { width: 100%; height: 48px; background: var(--border); border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .reseller-tiers { grid-template-columns: 1fr; }
    .reseller-how   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .offers-grid  { grid-template-columns: 1fr; }
    .offers-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .reseller-how { grid-template-columns: 1fr; }
}
