/* Blockchain Information Modal Styles */

.blockchain-info-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    position: relative;
}

/* Close button positioning for blockchain modal */
.blockchain-info-modal .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    user-select: none;
}

.blockchain-info-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-accent, #255ff4);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(37, 95, 244, 0.4);
}

.blockchain-info-modal .modal-close svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.blockchain-info-modal .modal-close:hover svg {
    transform: rotate(90deg);
}

.blockchain-explanation {
    padding: 2rem 0;
}

.explanation-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.explanation-intro .modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Blockchain Features Grid */
.blockchain-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blockchain-feature {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(
        145deg,
        rgba(26, 26, 26, 0.6) 0%,
        rgba(40, 40, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.6) 100%
    );
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blockchain-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blockchain-feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 113, 252, 0.05) 0%,
        transparent 50%,
        rgba(2, 113, 252, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.blockchain-feature:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(
        145deg,
        rgba(2, 113, 252, 0.08) 0%,
        rgba(40, 40, 45, 0.8) 50%,
        rgba(2, 113, 252, 0.08) 100%
    );
    border-color: rgba(2, 113, 252, 0.4);
    box-shadow: 
        0 12px 32px rgba(2, 113, 252, 0.2),
        0 4px 16px rgba(2, 113, 252, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.blockchain-feature:hover::before {
    transform: scaleX(1);
}

.blockchain-feature:hover::after {
    opacity: 1;
}

.blockchain-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.blockchain-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.blockchain-feature:hover .blockchain-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(2, 113, 252, 0.4);
}

.feature-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Blockchain Stats */
.blockchain-stats {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(2, 113, 252, 0.05) 0%,
        rgba(26, 26, 27, 0.8) 50%,
        rgba(2, 113, 252, 0.05) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(2, 113, 252, 0.2);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(2, 113, 252, 0.1);
    border-color: rgba(2, 113, 252, 0.3);
    box-shadow: 0 8px 24px rgba(2, 113, 252, 0.2);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Blockchain Workflow */
.blockchain-workflow {
    margin-top: 3rem;
}

.blockchain-workflow h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.blockchain-workflow h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.workflow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.workflow-step:hover {
    background: rgba(2, 113, 252, 0.05);
    border-color: rgba(2, 113, 252, 0.2);
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(2, 113, 252, 0.3);
}

.step-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Modal Footer Actions */
.modal-footer .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blockchain-info-modal {
        width: 98%;
        margin: 1rem auto;
    }

    .blockchain-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blockchain-feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .modal-footer .modal-actions {
        justify-content: center;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .explanation-intro .modal-subtitle {
        font-size: 1rem;
    }

    .blockchain-feature {
        padding: 1rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }
} 