/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Turnstile Protection Styles */
.turnstile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(154, 156, 150, 0.8), rgba(166, 149, 149, 0.8));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.turnstile-container {
    background: linear-gradient(135deg, #f4f3f1, #f8f7f5);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(154, 156, 150, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(166, 149, 149, 0.1);
    position: relative;
}

.turnstile-title {
    margin-bottom: 1.5rem;
    color: #8b9098;
    font-weight: 500;
    font-size: 1.4rem;
}

.turnstile-message {
    margin-bottom: 1.8rem;
    color: #a69595;
    font-size: 0.95rem;
    line-height: 1.5;
}

.turnstile-powered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #e8e6e3, #ebe9e6);
    border-radius: 20px;
    font-size: 0.7rem;
    color: #a69595;
    border: 1px solid rgba(166, 149, 149, 0.15);
    opacity: 0.9;
    transition: all 0.2s ease;
    text-decoration: none;
}

.turnstile-powered:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(154, 156, 150, 0.15);
}

.turnstile-powered::before {
    content: "🛡️";
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

/* Browser hint styles */
.browser-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0eae6, #f3ede9);
    border-radius: 12px;
    border-left: 3px solid #d4b5a0;
    font-size: 0.85rem;
    color: #8b7d7d;
    line-height: 1.4;
    text-align: left;
    display: none;
    animation: fadeInSlide 0.3s ease-out;
}

.browser-hint-icon {
    color: #d4b5a0;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.browser-hint-title {
    font-weight: 600;
    color: #7a6e6e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.browser-hint.show {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blurred-content {
    filter: blur(10px);
    transition: filter 0.5s ease;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    height: 100vh;
}

/* Prevent scrolling when verification overlay is shown */
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 1rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

ul, ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* Header */
header {
    margin-bottom: 3rem;
}

.version-tag {
    font-size: 1rem;
    text-align: center;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Examples */
.example-container {
    margin-top: 2rem;
}

.example {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.correct {
    border-left: 5px solid var(--success-color);
}

.incorrect {
    border-left: 5px solid var(--danger-color);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.image-item {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.image-item:hover {
    transform: scale(1.02);
}

.thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.3s;
}

.image-item:hover .thumbnail {
    filter: brightness(0.9);
}

.zoom-icon {
    position: absolute;
    right: 10px;
    bottom: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-item:hover .zoom-icon {
    opacity: 1;
}

.image-item .description {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.description {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--text-light);
}

/* Video Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

video {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.video-zoom {
    opacity: 0.7;
}

.video-wrapper:hover .video-zoom {
    opacity: 1;
}

/* Quality List */
.quality-list {
    list-style-type: none;
    padding-left: 0.5rem;
}

.quality-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.quality-list li i {
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Naming Rules */
.naming-rules {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tips */
.tips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1.5rem;
}

.tip-card {
    flex: 1 0 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.tip-card h3 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
}

#modalImage, #modalVideo {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#imageCaption {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .tip-card {
        flex: 1 0 45%;
    }
}

@media (max-width: 768px) {
    .turnstile-container {
        padding: 2rem 1.5rem;
        max-width: 400px;
    }
    
    .turnstile-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .turnstile-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .browser-hint {
        font-size: 0.8rem;
        padding: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .turnstile-powered {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
        margin-top: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .image-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .image-item {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }
    
    .image-item .description {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .tip-card {
        flex: 1 0 100%;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .turnstile-container {
        padding: 1.8rem 1.2rem;
        max-width: 350px;
        width: 95%;
    }
    
    .turnstile-title {
        font-size: 1.1rem;
    }
    
    .browser-hint {
        font-size: 0.75rem;
        padding: 0.7rem;
        line-height: 1.3;
    }
    
    .turnstile-powered {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .version-tag {
        font-size: 0.9rem;
    }
}