/*
Theme Name: Ali Unfiltered (Done For You Edition)
Author: Anas Ali
Description: A fully hardcoded, pixel-perfect theme that exactly matches the Hostinger design out-of-the-box. No page builders required. Edit images via Appearance > Customize.
Version: 3.0.0
*/

:root {
    --ali-serif: 'Playfair Display', 'Lora', serif;
    --ali-sans: 'Inter', 'Helvetica Neue', sans-serif;
    --ali-dark: #111111;
    --ali-light: #F9F9F9;
    --ali-border: #EAEAEA;
}

body {
    font-family: var(--ali-sans);
    color: var(--ali-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ali-serif);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.5em;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.6; }
img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; color: #444; }

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--ali-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}
.site-logo { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.site-logo span { color: #999; }
.site-logo small { display: block; font-size: 0.6rem; letter-spacing: 0.1em; color: #666; font-family: var(--ali-sans); margin-top: 0.2rem; text-transform: uppercase; }
.site-nav { display: flex; gap: 2rem; font-size: 0.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.collab-btn {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid var(--ali-dark); padding: 0.5rem 1.2rem; border-radius: 4px;
}

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; }
.section-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; font-weight: 500; margin-bottom: 1rem; display: block;}

/* HOME HERO */
.home-hero { display: flex; align-items: center; gap: 4rem; padding-bottom: 6rem; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 5rem; line-height: 1.1; margin: 1.5rem 0; }
.hero-text p { font-size: 1.2rem; color: #555; max-width: 500px; margin-bottom: 2rem; }
.hero-author { display: flex; flex-direction: column; font-size: 0.9rem; margin-bottom: 2rem; border-left: 2px solid var(--ali-border); padding-left: 1rem; }
.hero-author strong { font-weight: 500; }
.hero-link { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--ali-dark); padding-bottom: 2px; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-height: 80vh; width: 100%; max-width: 500px; object-fit: cover; border-radius: 4px; }

/* FEATURED STORIES */
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.featured-header h2 { font-size: 3rem; margin: 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem 2rem; }
.post-card { display: flex; flex-direction: column; }
.post-thumbnail { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1.5rem; background: #eee; border-radius: 2px; }
.post-meta { display: flex; justify-content: space-between; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; margin-bottom: 0.5rem; border-bottom: 1px solid var(--ali-border); padding-bottom: 0.5rem; }
.post-title { font-size: 1.5rem; line-height: 1.3; margin: 0.5rem 0 1rem 0; }

/* CATEGORY SPOTLIGHTS */
.category-spotlight { display: flex; align-items: center; gap: 6rem; margin: 8rem 0; }
.spotlight-reverse { flex-direction: row-reverse; }
.spotlight-img { flex: 1; }
.spotlight-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.spotlight-text { flex: 1; }
.spotlight-text h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.spotlight-text p { font-size: 1.1rem; color: #555; margin-bottom: 2rem; max-width: 450px; }
.spotlight-list { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.spotlight-list li { display: flex; gap: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ali-border); padding-bottom: 1rem; }
.spotlight-list span:first-child { color: #999; font-family: var(--ali-serif); font-style: italic; }

/* ABOUT SECTION */
.home-about { display: flex; align-items: center; gap: 4rem; margin: 8rem 0; background: var(--ali-light); padding: 4rem; border-radius: 4px; }
.home-about img { width: 100%; max-width: 400px; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }
.about-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.1rem; color: #555; margin-bottom: 1.5rem; }

/* COLLAB & NEWSLETTER */
.collab-section { text-align: center; padding: 6rem 2rem; border-top: 1px solid var(--ali-border); }
.collab-section h2 { font-size: 3.5rem; margin-bottom: 2rem; }
.collab-tags { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.collab-tags span { background: var(--ali-light); padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.9rem; border: 1px solid var(--ali-border); }

.newsletter-section { background: var(--ali-light); padding: 6rem 2rem; text-align: center; }
.newsletter-section h2 { font-size: 3rem; margin-bottom: 1rem; }

/* FOOTER */
.site-footer { background: #fff; padding: 4rem 3rem; border-top: 1px solid var(--ali-border); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo p { font-size: 0.9rem; color: #666; margin-top: 1rem; max-width: 300px;}
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-socials a { display: inline-block; width: 8px; height: 8px; background: var(--ali-dark); border-radius: 50%; }
.footer-widget h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; font-family: var(--ali-sans); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.75rem; }
.footer-nav a { font-size: 0.95rem; color: #555; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--ali-border); padding-top: 2rem; margin-top: 2rem; font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 900px) {
    .site-header { flex-direction: column; padding: 1.5rem; gap: 1.5rem; }
    .site-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .home-hero, .category-spotlight, .home-about { flex-direction: column; gap: 2rem; text-align: center; padding: 2rem 0;}
    .hero-text h1, .spotlight-text h2, .about-text h2, .collab-section h2 { font-size: 2.5rem; }
    .hero-image img, .spotlight-img img, .home-about img { max-width: 100%; }
    .hero-author { border-left: none; padding-left: 0; align-items: center; }
    .spotlight-list li { justify-content: center; }
    .site-footer { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
    .footer-logo p { max-width: 100%; }
    .footer-socials { justify-content: center; }
}
