/* =================== СИСТЕМА ЧЕСТНОЙ ИГРЫ =================== */

/* Переопределение базовых стилей FontAwesome для flex центрирования */
.fa, .fab, .fal, .far, .fas {
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-font-smoothing: antialiased !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Основной контейнер */
.fair-check-container {
    background: rgba(108, 122, 224, 0.05);
    border: 1px solid rgba(108, 122, 224, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.fair-check-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c7ae0 0%, #7c8ae0 100%);
}

.fair-check-header {
    text-align: center;
    margin-bottom: 25px;
}

.fair-check-header h2 {
    color: #6c7ae0;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fair-check-header p {
    color: #aebbe8;
    font-size: 16px;
    opacity: 0.9;
}

/* Форма проверки */
.fair-check-form {
    max-width: 600px;
    margin: 0 auto;
}

.hash-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.hash-input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7ae0;
    font-size: 18px;
    z-index: 2;
}

.hash-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: #3a3f57;
    border: 2px solid #3a3f57;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hash-input:focus {
    outline: none;
    border-color: #6c7ae0;
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.1);
}

.hash-input::placeholder {
    color: #7c8290;
}

.hash-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7c8290;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.hash-clear:hover {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.check-btn {
    background: linear-gradient(135deg, #6c7ae0 0%, #7c8ae0 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
    position: relative;
}

.check-btn:hover {
    background: linear-gradient(135deg, #7c8ae0 0%, #8c9ae0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 122, 224, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Результат проверки */
.check-result {
    margin-top: 25px;
    padding: 25px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
    transition: all 0.3s ease;
}

.check-result.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.check-result.error {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.3);
}

.check-result.success .result-header {
    color: #4caf50;
}

.check-result.error .result-header {
    color: #ff5252;
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #4caf50;
    font-size: 18px;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.result-label {
    color: #aebbe8;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.result-value {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.hash-value {
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 5px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.copy-btn, .share-btn {
    background: rgba(108, 122, 224, 0.2);
    color: #6c7ae0;
    border: 1px solid rgba(108, 122, 224, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover, .share-btn:hover {
    background: rgba(108, 122, 224, 0.3);
    transform: translateY(-1px);
}

/* Быстрые ссылки */
.quick-links {
    margin-bottom: 30px;
}

.quick-links h3 {
    color: #6c7ae0;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.game-link {
    background: #3a3f57;
    border: 2px solid #3a3f57;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #aebbe8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.game-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.game-link:hover {
    background: #4a4f67;
    border-color: #4a4f67;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-link.double::before { background: linear-gradient(90deg, #e77a74 0%, #e79f74 100%); }
.game-link.jackpot::before { background: linear-gradient(90deg, #f9d71c 0%, #f6a424 100%); }
.game-link.battle::before { background: linear-gradient(90deg, #9b59b6 0%, #8e44ad 100%); }

.game-link.pvp::before { 
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%) !important; 
}


.game-link:hover::before {
    height: 3px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(108, 122, 224, 0.1);
    color: #6c7ae0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.game-icon i {
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.game-link:hover .game-icon {
    background: rgba(108, 122, 224, 0.2);
    transform: scale(1.1);
}

.game-info {
    flex: 1;
}

.game-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.game-desc {
    font-size: 14px;
    color: #7c8290;
}

/* Инструкции */
.instructions-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.instructions-container h3 {
    color: #6c7ae0;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: #7c8290;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    color: #aebbe8;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #6c7ae0;
    background: rgba(108, 122, 224, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6c7ae0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Шаги инструкции */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c7ae0 0%, #7c8ae0 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-content p {
    color: #aebbe8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-content ul {
    color: #aebbe8;
    margin-left: 20px;
    margin-bottom: 10px;
}

.step-content li {
    margin-bottom: 5px;
}

.code-example {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 14px;
    color: #6c7ae0;
    margin: 10px 0;
}

/* Примеры игр */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.example-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.example-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.example-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.example-icon i {
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.double-icon { background: rgba(231, 122, 116, 0.2); color: #e77a74; }
.jackpot-icon { background: rgba(249, 215, 28, 0.2); color: #f9d71c; }
.battle-icon { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }

.pvp-icon { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }

/* Дополнительные стили для FontAwesome иконок */
.game-icon .fas, .game-icon .far, .game-icon .fab,
.example-icon .fas, .example-icon .far, .example-icon .fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.example-header h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.example-content p {
    color: #aebbe8;
    font-size: 14px;
    margin-bottom: 10px;
}

.example-content ul {
    color: #aebbe8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.example-hash {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    color: #7c8290;
    word-break: break-all;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question .fas {
    color: #6c7ae0;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: #aebbe8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.faq-answer ul {
    color: #aebbe8;
    margin-left: 20px;
}



/* Адаптивность */
@media (max-width: 768px) {
    .fair-check-container {
        padding: 20px;
    }
    
    .fair-check-header h2 {
        font-size: 24px;
    }
    
    .hash-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .check-btn {
        width: 100%;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .game-links {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instructions-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .fair-check-container {
        padding: 15px;
    }
    
    .fair-check-header h2 {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
    }
    
    .hash-input {
        padding: 12px 15px 12px 45px;
        font-size: 14px;
    }
    
    .check-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .game-link {
        padding: 15px;
    }
    
    .game-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .game-name {
        font-size: 16px;
    }
    
    .instructions-container {
        padding: 20px;
    }
} 