/* --- Global Styles & Variables --- */
:root {
    --primary-color: #ff0000;
    --dark-color: #0f0f0f;
    --light-color: #f9f9f9;
    --text-color: #030303;
    --gray-color: #aaa;
    --border-color: #ddd;
    --white-color: #ffffff;
    --font-family: 'Roboto', Arial, sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- Basic Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }

/* --- Header & Footer --- */
.site-header, .site-footer { background-color: var(--white-color); border-bottom: 1px solid var(--border-color); }
.site-header nav { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--dark-color); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--dark-color); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }
.site-footer { text-align: center; padding: 2rem 0; margin-top: 4rem; border-top: 1px solid var(--border-color); background: #f1f1f1; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }

/* --- LOGO IMAGE STYLES --- */
/* यह नया कोड यहाँ जोड़ा गया है */
.site-header .logo img {
    max-height: 40px; /* Logo की ऊँचाई */
    width: auto;
    display: block;
}

/* --- Hero Section --- */
.hero { text-align: center; padding: 4rem 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero p { font-size: 1.2rem; color: #606060; margin-bottom: 2rem; }
#thumbnail-form { display: flex; justify-content: center; max-width: 700px; margin: 0 auto; gap: 10px; }
#youtube-url { flex-grow: 1; padding: 15px 20px; font-size: 1rem; border: 2px solid var(--border-color); border-radius: var(--border-radius); transition: border-color 0.3s ease; }
#youtube-url:focus { outline: none; border-color: var(--primary-color); }
#thumbnail-form button { padding: 15px 30px; border: none; background-color: var(--primary-color); color: var(--white-color); font-size: 1rem; font-weight: 700; border-radius: var(--border-radius); cursor: pointer; transition: background-color 0.3s ease; }
#thumbnail-form button:hover { background-color: #d90000; }

/* --- Results Section --- */
#results-section { min-height: 200px; padding: 2rem 0; }
#thumbnail-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.thumbnail-card { background: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; overflow: hidden; transition: transform 0.3s ease; }
.thumbnail-card:hover { transform: translateY(-5px); }
.thumbnail-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background-color: var(--light-color); }
.thumbnail-info { padding: 1.5rem; }
.thumbnail-info h3 { font-size: 1.2rem; }
.thumbnail-info p { color: #606060; margin-bottom: 1.5rem; }
.download-btn { display: inline-block; padding: 12px 25px; background-color: var(--dark-color); color: var(--white-color); border-radius: 8px; font-weight: 500; transition: background-color 0.3s, transform 0.3s; }
.download-btn:hover { background-color: #000; transform: scale(1.05); }

/* --- Loader & Messages --- */
.hidden { display: none !important; }
#loader { width: 50px; height: 50px; border: 5px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#error-message { text-align: center; color: var(--primary-color); font-weight: 500; font-size: 1.1rem; }

/* --- Content & Legal Pages --- */
.content-section, .legal-page { background: var(--white-color); padding: 2rem; margin-top: 3rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.content-section h2, .legal-page h1 { font-size: 2rem; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 0.5rem; }
.content-section ol { padding-left: 20px; }
.content-section li { margin-bottom: 1rem; }
.legal-page h2 { margin-top: 2rem; }

/* --- Responsive --- */
@media (max-width: 600px) {
    #thumbnail-form { flex-direction: column; }
    .nav-links { display: none; } /* Use JS for a hamburger menu if needed */

    /* Logo को छोटी स्क्रीन पर छोटा करने के लिए */
    /* यह नया कोड यहाँ जोड़ा गया है */
    .site-header .logo img {
        max-height: 30px;
    }
}