/* ============================================================
   archivekickbounties.css — الأنماط الخاصة بصفحة archivekickbounties.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

/* ============================================================
   archivekickbounties.css — الأنماط الخاصة بصفحة archivekickbounties.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

:root {
    --neon-green: #00FF00;
    --neon-green-dark: #00CC00;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --glass-bg: rgba(15, 15, 20, 0.9);
    --glow-green: 0 0 20px rgba(0, 255, 0, 0.5), 0 0 40px rgba(0, 255, 0, 0.3);
    --glow-gold: 0 0 15px rgba(255, 215, 0, 0.4);
}

[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --neon-green: #00AA00;
    --glow-green: 0 4px 15px rgba(0, 170, 0, 0.3);
}

h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, div {
    letter-spacing: 0 !important;
}

.page-header {
    padding: 140px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text), 0 0 40px rgba(0, 212, 255, 0.4);
}

.page-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
}

.bounties-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}

.bounties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Bounty Card */

.bounty-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.bounty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.bounty-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.bounty-card:hover::before {
    opacity: 1;
}

.bounty-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.bounty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.bounty-card:hover .bounty-image img {
    transform: scale(1.05);
}

.bounty-info {
    padding: 20px;
}

.bounty-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.bounty-prize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    border-radius: var(--radius-xl);
    margin-bottom: 15px;
}

.bounty-prize svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.bounty-prize span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
}

.bounty-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-xl);
    box-shadow: var(--glow-green);
    margin-right: 30px;
}

.bounty-status svg {
    width: 16px;
    height: 16px;
    color: var(--neon-green);
}

.bounty-status span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-green);
}

/* Bounty Action CTA */

.bounty-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.bounty-action svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.bounty-card:hover .bounty-action {
    color: var(--neon-cyan);
}

.bounty-card:hover .bounty-action svg {
    transform: translateX(-5px);
}

/* Modal Overlay */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff4444;
    color: #ff4444;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-shadow: var(--glow-text);
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-prize {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold);
    border-radius: var(--radius-xl);
    box-shadow: var(--glow-gold);
}

.modal-prize svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.modal-prize span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 255, 0, 0.15);
    border: 2px solid var(--neon-green);
    border-radius: var(--radius-xl);
    box-shadow: var(--glow-green);
}

.modal-status svg {
    width: 20px;
    height: 20px;
    color: var(--neon-green);
}

.modal-status span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-green);
}

.modal-video-section {
    margin-bottom: 25px;
}

.modal-video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-video-title svg {
    width: 20px;
    height: 20px;
    color: var(--neon-cyan);
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #53fc18, #00cc00);
    color: #000;
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
    flex: 1;
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(83, 252, 24, 0.6);
}

.modal-btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Empty State */

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
}

.footer {
    margin-top: 60px;
}

.loader.hidden {
    pointer-events: none;
}

.loader-logo {
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(0, 212, 255, 0); }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 30px;
    }

    .bounties-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-meta {
        flex-direction: column;
    }
}

/* ---------- تباعد الشارتين واتجاه سهم "اضغط لعرض التفاصيل" ---------- */

.bounty-prize {
    margin-inline-end: 10px;
    margin-bottom: 8px;
}

/* في الإنجليزية يقف السهم بعد النص ويشير لليمين */
[dir="ltr"] .bounty-action {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="ltr"] .bounty-action svg {
    transform: scaleX(-1);
}
