/**
 * Test My Screen Public CSS
 * Styles for the public-facing functionality of the plugin
 */

/* Main Container */
.testmyscreen-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

/* Initial Interface */
.testmyscreen-initial {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.testmyscreen-header {
    margin-bottom: 30px;
}

.testmyscreen-header h1 {
    font-size: 36px;
    color: #4285f4;
    margin-bottom: 10px;
}

.testmyscreen-tagline {
    font-size: 18px;
    color: #5f6368;
    margin-top: 0;
}

/* Custom Description */
.testmyscreen-custom-description {
    margin: 20px auto;
    max-width: 800px;
    padding: 15px;
    background-color: #f1f8ff;
    border-left: 4px solid #4285f4;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.testmyscreen-custom-description p {
    margin: 0 0 10px;
}

.testmyscreen-custom-description p:last-child {
    margin-bottom: 0;
}

/* Start Button */
.testmyscreen-start-button {
    display: inline-block;
    background-color: #4285f4;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    margin: 30px 0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 133, 244, 0.25);
    position: relative;
    overflow: hidden;
}

.button-icon {
    margin-right: 10px;
}

.button-icon-right {
    margin-left: 10px;
}

.testmyscreen-start-button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 133, 244, 0.3);
}

.testmyscreen-start-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

/* About Section */
.testmyscreen-about {
    text-align: left;
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testmyscreen-about h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #4285f4;
    font-size: 28px;
    text-align: center;
}

.testmyscreen-about-section {
    margin-bottom: 30px;
}

.testmyscreen-about-section h3 {
    margin-bottom: 15px;
    color: #3367d6;
    font-size: 20px;
    font-weight: 600;
}

/* Test Grid */
.testmyscreen-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.testmyscreen-test-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testmyscreen-test-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.test-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.solid-color-icon {
    background: linear-gradient(135deg, #f44336, #2196f3, #4caf50);
}

.gradient-icon {
    background: linear-gradient(to right, #000000, #ffffff);
}

.contrast-icon {
    background: radial-gradient(circle, #ffffff 0%, #000000 100%);
}

.sharpness-icon {
    background-color: #f1f3f4;
    position: relative;
}

.sharpness-icon:after {
    content: "Aa";
    position: absolute;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.response-icon {
    background-color: #e8f0fe;
    position: relative;
}

.response-icon:after {
    content: "→";
    position: absolute;
    color: #4285f4;
    font-size: 24px;
    font-weight: bold;
}

.geometry-icon {
    background-color: #f1f3f4;
    background-image: linear-gradient(0deg, #ddd 1px, transparent 1px), 
                      linear-gradient(90deg, #ddd 1px, transparent 1px);
    background-size: 10px 10px;
}

.testmyscreen-test-item h4 {
    color: #3367d6;
    margin: 0 0 10px;
    font-size: 16px;
    text-align: center;
}

.testmyscreen-test-item p {
    margin: 0;
    font-size: 14px;
    color: #5f6368;
}

.testmyscreen-more-tests {
    text-align: center;
    font-style: italic;
    color: #5f6368;
    margin-top: 20px;
}

/* Tips Section */
.testmyscreen-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tip-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.tip-icon {
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.tip-item p {
    margin: 0;
    font-size: 14px;
}

/* FAQ Section */
.testmyscreen-faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item h4 {
    color: #3367d6;
    margin: 0 0 10px;
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    color: #5f6368;
}

/* Disclaimer */
.testmyscreen-disclaimer {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   
}

.testmyscreen-disclaimer p {
    margin: 0;
    color: #5f6368;
}

/* Test Interface */
.testmyscreen-test-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 999999;
}

.testmyscreen-test-container.fullscreen {
    display: block;
}

/* Top Information Bar */
.testmyscreen-info-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 25px;
    background-color: rgba(33, 33, 33, 0.95);
    color: #fff;
    font-size: 16px;
    z-index: 1000001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testmyscreen-info-bar.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.info-bar-content {
    flex: 1;
}

#testmyscreen-observation-text {
    flex: 1;
    padding-right: 15px;
    white-space: normal;
    overflow-wrap: break-word;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.testmyscreen-exit-button {
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-icon {
    margin-right: 5px;
    font-size: 12px;
}

.testmyscreen-exit-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4);
}

.testmyscreen-exit-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(244, 67, 54, 0.4);
}

/* Main Test Canvas */
.testmyscreen-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
}

/* Special Test Controls */
.testmyscreen-special-controls {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000002;
    background-color: rgba(33, 33, 33, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testmyscreen-continue-button,
.testmyscreen-done-button {
    background-color: #4285f4;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testmyscreen-continue-button:hover,
.testmyscreen-done-button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(66, 133, 244, 0.3);
}

.testmyscreen-continue-button:active,
.testmyscreen-done-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

/* Bottom Navigation Bar */
.testmyscreen-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(33, 33, 33, 0.95);
    z-index: 1000001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testmyscreen-nav-bar.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.testmyscreen-nav-item {
    width: 48px;
    height: 48px;
    margin: 0 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testmyscreen-nav-item svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s ease;
}

.testmyscreen-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.testmyscreen-nav-item:hover svg {
    fill: #fff;
}

.testmyscreen-nav-item.active {
    background-color: rgba(66, 133, 244, 0.8);
    box-shadow: 0 3px 8px rgba(66, 133, 244, 0.5);
}

.testmyscreen-nav-item.active svg {
    fill: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .testmyscreen-header h1 {
        font-size: 28px;
    }
    
    .testmyscreen-tagline {
        font-size: 16px;
    }
    
    .testmyscreen-start-button {
        font-size: 16px;
        padding: 12px 30px;
    }
    
    .testmyscreen-info-bar {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .testmyscreen-exit-button {
        padding: 6px 15px;
        margin-right: 10px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .testmyscreen-test-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .testmyscreen-tips {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .testmyscreen-nav-item {
        width: 40px;
        height: 40px;
        margin: 0 8px;
        border-radius: 10%;
    }
    
    .testmyscreen-nav-item svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .testmyscreen-header h1 {
        font-size: 24px;
    }
    
    .testmyscreen-tagline {
        font-size: 14px;
    }
    
    .testmyscreen-about {
        padding: 20px;
    }
    
    .testmyscreen-test-grid {
        grid-template-columns: 1fr;
    }
    
    .testmyscreen-tips {
        grid-template-columns: 1fr;
    }
    
    .testmyscreen-info-bar {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .testmyscreen-exit-button {
        padding: 5px 12px;
        margin-right: 5px;
        font-size: 12px;
        min-width: 45px;
    }
    
    #testmyscreen-observation-text {
        max-width: 70%;
    }
    
    .testmyscreen-nav-item {
        width: 36px;
        height: 36px;
        margin: 0 6px;
    }
    
    .testmyscreen-nav-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Touch Screen Test Styles */
.testmyscreen-touch-drawing-area {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: crosshair;
}

.testmyscreen-touch-count {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(33, 33, 33, 0.9);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 15px;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testmyscreen-touch-grid {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    padding: 20px;
    z-index: 10;
}

.testmyscreen-touch-grid-point {
    background-color: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.testmyscreen-touch-grid-point.touched {
    background-color: rgba(66, 133, 244, 0.9);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.7);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .testmyscreen-touch-grid {
        gap: 10px;
        padding: 15px;
    }
    
    .testmyscreen-touch-count {
        font-size: 36px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .testmyscreen-touch-grid {
        gap: 8px;
        padding: 10px;
    }
    
    .testmyscreen-touch-count {
        font-size: 30px;
        padding: 12px 24px;
    }
} 