/* Screen Display Test Styles */

/* 1. Main Container */
.test-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* 2. Hero Section Override (if needed) */
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: -webkit-linear-gradient(45deg, #007bff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 3. Color Test Area (Preview) */
.color-test-preview {
    width: 80%;
    max-width: 600px;
    height: 300px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    flex-direction: column;
}

.color-test-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.preview-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.color-test-preview:hover .preview-icon {
    color: #007bff;
}

.preview-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* 4. Controls */
.controls-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn-pill {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

/* 5. Fullscreen Overlay */
#colorOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    z-index: 99999;
    display: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    transform: none;
}

#colorOverlay.active {
    display: block;
}

/* Body state when test is active */
body.color-test-active {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    zoom: 1 !important;
    transform: none !important;
}

body.color-test-active #colorOverlay {
    /* Compensate for any zoom on body */
    transform: scale(calc(1 / 0.9));
    transform-origin: top left;
    width: calc(100vw / 0.9);
    height: calc(100vh / 0.9);
}

/* Floating Exit Button */
.floating-exit-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 100000;
    /* Above the overlay */
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-exit-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

body.color-test-active .floating-exit-btn {
    display: flex;
    /* Ensure button is also scaled correctly if needed, or simply placed fixed. 
       Since body zoom is reset to 1 in color-test-active, fixed positioning should work fine. */
}

/* Info Section Styles (Shared) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f3f5;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #212529;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.info-card ul li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tip-item {
    margin-bottom: 20px;
}

.tip-item strong {
    display: block;
    color: #343a40;
    margin-bottom: 4px;
}