/* static/css/tests/intro.css - Landing Page Styles */

/* Page should not scroll horizontally while preloading */
html.preloading,
body.preloading {
  overflow: hidden;
}

/* Hide main content until fully loaded */
body.preloading .test-main,
body.preloading .intro-main-container {
  opacity: 0;
  visibility: hidden;
}

/* Smooth reveal */
.test-main,
.intro-main-container {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Overlay fade-out (overlay element lives in base_layout.html) */
#page-load-overlay {
  transition: opacity 0.3s ease;
}


.intro-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

.intro-container {
    width: 100%;
    margin: 1rem 0 2rem;
    display: flex;
    justify-content: center;
}

.intro-content {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.instructions-box {
    width: 100%;
    background-color: white;
    margin: 0 0 1rem;
    border-radius: 10px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #EDEFFF;
    box-shadow: 0 5px 11px rgba(229, 229, 229, 0.4);
}

/* Navigation */
.test-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.test-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

/* Main Layout */
.test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 0;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
}

/* Btn */

.btn-primary {
    display: flex;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 10px;
    margin: auto;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Meta Information */
.intro-meta {
    margin: 1rem 0;
}

.intro-meta p {
    color: var(--text-muted);
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    justify-content: space-between;
}

.detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-item:last-of-type {
    border-right: none;
}

.detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eaecff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 16px;
    color: var(--primary);
}

.detail-text {
    display: flex;
    flex-direction: column;
    line-height: normal;
    align-items: flex-start;
}

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-value {
    display: flex;
    font-weight: bold;
    line-height: normal;
    align-items: center;
}

.divider-line {
    border-left: 1px solid #cdced7;
    margin: 0 0.5rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Instruction */

.intro-description {
    line-height: 1.3;
    text-align: left;
    color: var(--text-muted);
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f5f6ff;
    font-size: 14px;
    text-wrap: auto;
}

.intro-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
}

.instruction-lists {
    padding: 0;
    text-align: left;
    margin-top: 10px;
}

/* Simple dash bullets */
.instruction-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.instruction-list li {
    margin: .5rem 0;
    position: relative;
    padding-left: 20px;
    line-height: normal;
}

.instruction-list li::before {
  content: "\F633"; /* bi-check2 icon */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  font-size: 1rem;
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-hero {
        padding: 3rem 1rem;
        margin: 1rem 0;
    }

    .test-container {
        padding: 0 0.5rem;
    }

    .intro-content {
        max-width: unset;
        width: 100%;
    }

    .instructions-box {
        margin-top: 0 !important;
        margin-bottom: 0;
    }

    .intro-image {
        max-height: 150px;
    }

    .detail-icon {
        width: 24px;
        height: 24px;
    }

    .detail-icon i {
        font-size: 12px;
    }


}

/* Animation */
.intro-hero {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

