:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --bg-color: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--card-bg);
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.input-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: var(--primary-dark);
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* Results Section */
.results {
    padding: 40px 10%;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.thumb-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.thumb-card:hover {
    transform: translateY(-5px);
}

.thumb-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #eee;
}

.thumb-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.thumb-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.download-btn:hover {
    background: black;
}

/* SEO Content */
.seo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.seo-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-content p, .seo-content ol {
    margin-bottom: 15px;
    color: var(--text-light);
}

.seo-content ol {
    padding-left: 20px;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}