/* assets/css/style.css */

/* Public page background with subtle pattern */
body.public-page {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.public-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0,123,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(40,167,69,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.proof-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    max-width: 420px;
    width: 100%;
    margin: 0 20px;
    transition: transform 0.2s ease;
}
.proof-card:hover {
    transform: translateY(-2px);
}

/* Fixed-size code box – full width of parent, constant height */
.code-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 20px;
    border: 1px dashed #ced4da;
    height: 64px;                    /* fixed height */
    width: 100%;                     /* take full card width – prevents shrinking */
    box-sizing: border-box;          /* include padding in width */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Code display – stays inside the fixed box, centered, no wrap */
#codeDisplay {
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

/* Progress bar */
.progress {
    height: 6px;
    border-radius: 3px;
}

/* Disabled copy button */
#copyBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ad containers */
.ad-container {
    text-align: center;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-ad {
    margin-bottom: auto;
}
.footer-ad {
    margin-top: auto;
}

/* Fade-in animation */
.animate-fade-in {
    animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spin animation for legacy spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner-icon {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Incomplete state styling */
.code-box.bg-light.text-muted {
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}