/* Click Speed Tester Specific Styles */

/* Test Modes */
.test-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.test-mode {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-mode:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.test-mode.active {
    background-color: #3498db;
    color: #fff;
    border-color: #2980b9;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.test-mode i {
    font-size: 14px;
}

/* Custom Duration */
.custom-duration {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.custom-duration label {
    font-weight: 500;
    color: #495057;
}

.custom-duration input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 80px;
    text-align: center;
    font-size: 16px;
}

/* Click Test Container */
.click-test-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .click-test-container {
        grid-template-columns: 1fr;
    }
}

.click-test-area {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

.click-test-area:hover {
    border-color: #3498db;
    box-shadow: inset 0 1px 5px rgba(52, 152, 219, 0.2);
}

.click-test-area.active {
    background-color: #e8f4fc;
    border-color: #3498db;
}

.click-test-area.complete {
    background-color: #f0f9f0;
    border-color: #28a745;
}

/* Test Status */
.test-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.status-ready {
    text-align: center;
}

.status-ready i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.status-ready p {
    font-size: 18px;
    color: #495057;
    margin: 0;
}

/* Active Test Status */
.status-active {
    text-align: center;
    width: 100%;
}

.timer {
    font-size: 60px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.click-counter {
    font-size: 24px;
    color: #495057;
    margin-bottom: 10px;
}

.click-counter span {
    font-weight: 700;
    color: #2c3e50;
}

.current-cps {
    font-size: 18px;
    color: #495057;
}

.current-cps span {
    font-weight: 700;
    color: #e74c3c;
}

/* Complete Test Status */
.status-complete {
    text-align: center;
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-header {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.result-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
}

.result-rating {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.rating-label {
    font-size: 16px;
    color: #495057;
    margin-bottom: 5px;
}

.rating-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.rating-value.beginner {
    color: #6c757d;
}

.rating-value.average {
    color: #28a745;
}

.rating-value.good {
    color: #17a2b8;
}

.rating-value.pro {
    color: #fd7e14;
}

.rating-value.elite {
    color: #e74c3c;
}

.status-complete .btn {
    margin: 0 5px;
}

/* Click Test Info */
.click-test-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.info-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 i {
    color: #3498db;
}

.info-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.rating-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rating-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.rating {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 600;
    font-size: 12px;
}

.rating.beginner {
    background-color: #e9ecef;
    color: #495057;
}

.rating.average {
    background-color: #d4edda;
    color: #155724;
}

.rating.good {
    background-color: #d1ecf1;
    color: #0c5460;
}

.rating.pro {
    background-color: #fff3cd;
    color: #856404;
}

.rating.elite {
    background-color: #f8d7da;
    color: #721c24;
}

/* Performance Chart */
.click-performance-chart {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.click-performance-chart h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
}

.chart-container {
    height: 300px;
    margin-bottom: 15px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-label {
    font-size: 14px;
    color: #495057;
}

/* Improvement Tips */
.click-improvement-tips {
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background-color: #e8f4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.tip-icon i {
    font-size: 24px;
    color: #3498db;
}

.tip-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.tip-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Advanced Techniques */
.click-techniques {
    margin-bottom: 40px;
}

.techniques-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.technique {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.technique:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.technique h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.technique p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Related Articles */
.related-content {
    margin-bottom: 40px;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-article {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-article a {
    text-decoration: none;
    color: inherit;
}

.related-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.related-article h4 {
    padding: 15px 15px 10px;
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.4;
}

.related-article p {
    padding: 0 15px 15px;
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Click Effect Animation */
@keyframes click-ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.click-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3);
    width: 50px;
    height: 50px;
    animation: click-ripple 0.6s ease-out;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .test-mode {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .tips-grid, .techniques-container, .related-articles {
        grid-template-columns: 1fr;
    }
}
