/*
Theme Name: AutoTest
Theme URI: https://example.com
Author: AutoTest
Description: Temë WordPress për platforma testimi online (autoshkollë, kuize, abonime). Funksionon së bashku me plugin-in AutoTest.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: autotest-theme
*/

:root {
    --at-primary: #1d4ed8;
    --at-primary-dark: #1e3a8a;
    --at-accent: #f59e0b;
    --at-bg: #f8fafc;
    --at-text: #0f172a;
    --at-muted: #64748b;
    --at-border: #e2e8f0;
    --at-radius: 12px;
    --at-max-width: 1180px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--at-text);
    background: var(--at-bg);
    line-height: 1.6;
}

a { color: var(--at-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.at-container {
    max-width: var(--at-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Header ---------- */
.at-header {
    background: #fff;
    border-bottom: 1px solid var(--at-border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.at-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 16px;
}
.at-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--at-primary-dark) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.at-logo img { height: 36px; width: auto; }

.at-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}
.at-nav a {
    color: var(--at-text);
    font-weight: 500;
    font-size: .95rem;
}
.at-nav a:hover { color: var(--at-primary); text-decoration: none; }

.at-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.at-btn {
    background: var(--at-primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
}
.at-btn:hover { background: var(--at-primary-dark); text-decoration: none; }
.at-btn-outline {
    background: transparent;
    color: var(--at-primary) !important;
    border: 1px solid var(--at-primary);
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
}

.at-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--at-text);
}

@media (max-width: 860px) {
    .at-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--at-border);
        display: none;
        gap: 14px;
    }
    .at-nav.at-nav-open { display: flex; }
    .at-burger { display: block; }
}

/* ---------- Hero ---------- */
.at-hero {
    background: linear-gradient(135deg, var(--at-primary-dark), var(--at-primary));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.at-hero h1 { color: #fff; margin-bottom: 12px; }
.at-hero p { font-size: 1.1rem; opacity: .92; max-width: 600px; margin: 0 auto 24px; }
.at-hero .at-btn { display: inline-block; background: var(--at-accent); color: #1e293b !important; padding: 14px 32px; font-size: 1rem; }
.at-hero .at-btn:hover { background: #d97706; }

/* ---------- Sections ---------- */
.at-section { padding: 50px 20px; }
.at-section-title { text-align: center; margin-bottom: 30px; }
.at-section-title h2 { margin-bottom: 6px; }
.at-section-title p { color: var(--at-muted); }
.at-section-alt { background: #fff; }

/* ---------- Footer ---------- */
.at-footer {
    background: var(--at-primary-dark);
    color: #cbd5e1;
    padding: 40px 20px 20px;
    margin-top: 40px;
}
.at-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.at-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.at-footer a { color: #cbd5e1; font-size: .9rem; }
.at-footer a:hover { color: #fff; }
.at-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 16px;
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
}

/* ---------- Page / Post content ---------- */
.at-page-content {
    background: #fff;
    border-radius: var(--at-radius);
    padding: 30px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* ---------- Articles / Blog ---------- */
.at-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.at-article-card {
    background: #fff;
    border-radius: var(--at-radius);
    overflow: hidden;
    border: 1px solid var(--at-border);
    transition: transform .15s;
}
.at-article-card:hover { transform: translateY(-3px); }
.at-article-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.at-article-card-body { padding: 16px; }
.at-article-card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.at-article-card-body p { color: var(--at-muted); font-size: .9rem; margin-bottom: 10px; }
.at-article-date { font-size: .8rem; color: var(--at-muted); }

/* ---------- Responsive helper ---------- */
@media (max-width: 600px) {
    .at-section { padding: 30px 16px; }
    .at-hero { padding: 40px 16px; }
}
