/* TEST CSS 12345 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* HEADER */

.site-header {
    background: #111827;
    color: #ffffff;
    padding: 24px 0;
}

.site-header h1 {
    margin: 0;
    font-size: 30px;
}

.site-header h1 a {
    text-decoration: none;
}

.site-header p {
    margin: 6px 0 0;
    color: #d1d5db;
}

/* MAIN */

.main-content {
    padding: 50px 0;
}


/* HERO */

.hero {
    background: #ffffff;
    padding: 55px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.hero-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #6b7280;
}

.hero h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    color: #111827;
}

.hero p {
    max-width: 700px;
    margin: 18px auto 30px;
    color: #4b5563;
    font-size: 18px;
}


/* SEARCH */

.search-box {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: #111827;
}

.search-box button {
    padding: 15px 24px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.search-box button:hover {
    background: #374151;
}


/* SECTION */

.intro-section,
.categories,
.empty-state {
    margin-top: 35px;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.intro-section h2,
.categories h2,
.empty-state h2 {
    margin-top: 0;
    color: #111827;
}

.intro-section p {
    color: #4b5563;
}


/* CATEGORY */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-grid a {
    display: block;
    padding: 18px;
    background: #f3f4f6;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.category-grid a:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}


/* EMPTY */

.empty-state {
    text-align: center;
}

.empty-state p {
    color: #6b7280;
}


/* FOOTER */

.site-footer {
    margin-top: 50px;
    padding: 25px 0;
    background: #111827;
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}


/* MOBILE */

@media (max-width: 768px) {

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        border-radius: 8px;
    }

    .search-box button {
        margin-top: 10px;
        border-radius: 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {

    .container {
        padding: 0 15px;
    }

    .site-header h1 {
        font-size: 25px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .intro-section,
    .categories,
    .empty-state {
        padding: 25px 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

}

/* ARTICLE */

.article-page {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.article-page h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.3;
    color: #111827;
}

.article-page p {
    color: #4b5563;
}

.article-content {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #1f2937;
}

@media (max-width: 768px) {

    .article-page {
        padding: 25px 20px;
    }

    .article-page h2 {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

}

.empty-state article {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.empty-state article:last-child {
    border-bottom: 0;
}

.empty-state article h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.empty-state article h3 a {
    color: #111827;
    text-decoration: none;
}

.empty-state article h3 a:hover {
    text-decoration: underline;
}

.empty-state article small {
    color: #6b7280;
}

.empty-state article p {
    margin-bottom: 0;
    color: #4b5563;
}

/* ADMIN FORM */

form input,
form textarea,
form select {
    width: 100%;
    max-width: 700px;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

form button {
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

form button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {

    form input,
    form textarea,
    form select {
        max-width: 100%;
    }

}