/**
 * Stake Verifiers - Shared CSS
 * Used across all Stake.com and Stake.us verifier pages
 *
 * Sections:
 * 1. Form Wrapper
 * 2. Game Details Section
 * 3. Related Verifiers Section
 * 4. Responsive Styles
 */

/* ==========================================================================
   1. Form Wrapper
   ========================================================================== */
.verifier-form-wrapper {
    max-width: 950px;
    width: 100%;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* ==========================================================================
   2. Game Details Section
   ========================================================================== */
.pf-game-details {
    margin-bottom: 3rem;
}

.pf-game-details .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pf-game-details .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.game-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.game-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.game-detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.detail-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.detail-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.detail-card-content {
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Card */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.stat-value.highlight {
    color: #00ff88;
}

/* Algorithm Card */
.algorithm-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.algo-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.algo-num {
    width: 24px;
    height: 24px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.algo-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.algo-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #00ff88;
}

/* Privacy Card */
.detail-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.privacy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.privacy-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 20px;
    font-weight: 500;
}

/* ==========================================================================
   3. Related Verifiers Section
   ========================================================================== */
.pf-related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section header - ensure title and subtitle stack vertically */
.pf-related-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pf-related-section .section-header::after {
    display: none !important;
}

.pf-related-section .section-title {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem 0;
}

.pf-related-section .section-title::after,
.pf-related-section .section-title::before {
    display: none !important;
}

.pf-related-section .section-subtitle {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.pf-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pf-related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pf-related-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.related-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.related-card-content {
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.related-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.related-card-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.pf-related-card:hover .related-card-arrow {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

.pf-related-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pf-related-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pf-related-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.pf-related-cta-btn svg {
    transition: transform 0.2s ease;
}

.pf-related-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   4. Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .game-details-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pf-related-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .pf-related-card {
        padding: 1rem;
    }

    .related-card-icon {
        width: 42px;
        height: 42px;
    }

    .related-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .verifier-form-wrapper {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .game-detail-card {
        padding: 1.25rem;
    }
}
