/*
Theme Name: STL Download
Theme URI: https://example.com
Author: STL Download
Description: A fast WordPress theme for displaying free 3D and STL models with external download links.
Version: 1.0.0
Text Domain: stl-download
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}
/* =========================
   GLOBAL LAYOUT
========================= */

:root {
    --black: #080a0c;
    --dark: #111418;
    --gold: #f2b632;
    --gold-dark: #d99a16;
    --white: #ffffff;
    --text: #171717;
    --muted: #6b7280;
    --border: #e8e8e8;
    --background: #f7f7f7;
    --radius: 14px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-container,
.header-container,
.footer-container,
.model-container,
.models-container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: var(--black);
    color: var(--white);
    border-bottom: 1px solid #20242a;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--gold);
    font-size: 40px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-size: 25px;
    letter-spacing: 1px;
}

.logo-text small {
    margin-top: 5px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.main-navigation a:hover {
    color: var(--gold);
}

.header-search form {
    display: flex;
}

.header-search input {
    width: 190px;
    border: 1px solid #34383e;
    background: #16191d;
    color: white;
    padding: 10px 12px;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.header-search button {
    border: 0;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero-section {
    background:
        radial-gradient(circle at 80% 20%, #252018 0, transparent 35%),
        linear-gradient(135deg, #080a0c, #14171b);
    color: white;
    min-height: 510px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "STL";
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(150px, 22vw, 330px);
    font-weight: 900;
    color: rgba(255,255,255,.025);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 85px 0;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content > p {
    max-width: 650px;
    margin: 24px 0;
    color: #c9cbd0;
    font-size: 17px;
}

.hero-search {
    display: flex;
    max-width: 650px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    margin-top: 30px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 17px;
    font-size: 15px;
}

.hero-search button,
.primary-button {
    background: var(--gold);
    color: #111;
    border: 0;
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 800;
    cursor: pointer;
}

.hero-actions {
    margin-top: 25px;
}

.primary-button {
    display: inline-block;
}


/* =========================
   SECTIONS
========================= */

.categories-section,
.latest-models-section,
.home-info-section {
    padding: 70px 0;
}

.categories-section {
    background: white;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
}

.section-link {
    font-weight: 700;
}

.section-link:hover {
    color: var(--gold-dark);
}


/* =========================
   CATEGORIES
========================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    padding: 24px;
    background: #f7f7f7;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.category-icon {
    font-size: 34px;
    color: var(--gold-dark);
}

.category-card strong {
    margin-top: 10px;
    font-size: 17px;
}

.category-card small {
    color: var(--muted);
}


/* =========================
   MODEL CARDS
========================= */

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.model-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.model-card-image {
    display: block;
    background: #ededed;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.model-card:hover .model-card-image img {
    transform: scale(1.04);
}

.model-placeholder {
    width: 100%;
    height: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #555;
    font-weight: 900;
}

.model-card-content {
    padding: 18px;
}

.model-card-category {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.model-card-title {
    margin: 7px 0 15px;
    font-size: 18px;
    line-height: 1.3;
}

.view-model-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: white;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.view-model-button:hover {
    background: var(--gold);
    color: #111;
}


/* =========================
   SINGLE MODEL
========================= */

.model-page,
.models-archive {
    padding: 50px 0 80px;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.breadcrumbs span,
.breadcrumbs a {
    margin-right: 7px;
}

.single-model {
    max-width: 950px;
    margin: 0 auto;
}

.model-header {
    margin-bottom: 25px;
}

.model-title {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.model-categories {
    color: var(--muted);
}

.model-featured-image {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.model-featured-image img {
    width: 100%;
}

.model-content {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 25px;
}

.model-download {
    background: var(--black);
    color: white;
    border-radius: var(--radius);
    padding: 32px;
    margin: 30px 0;
}

.model-download h2 {
    margin-top: 0;
}

.model-download p {
    color: #bbbfc5;
}

.download-button {
    display: inline-block;
    background: var(--gold);
    color: #111;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 900;
}


/* =========================
   ADS
========================= */

.homepage-ad-section {
    background: white;
}

.ad-placeholder,
.ad-space {
    min-height: 1px;
}


/* =========================
   SEO CONTENT
========================= */

.home-info-section {
    background: #f1f2f3;
}

.home-info-content {
    max-width: 800px;
}

.home-info-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 20px;
}

.home-info-content p {
    color: #555;
}


/* =========================
   ARCHIVE
========================= */

.archive-header {
    max-width: 700px;
    margin-bottom: 40px;
}

.archive-header h1 {
    font-size: clamp(36px, 5vw, 55px);
    margin: 0 0 12px;
}

.archive-header p {
    color: var(--muted);
}

.models-pagination {
    margin-top: 45px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--black);
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: #9ca0a6;
    max-width: 430px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h3 {
    margin-top: 0;
}

.footer-links a {
    color: #aeb1b6;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #22262b;
    padding: 20px;
    text-align: center;
    color: #81858b;
    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    .header-container {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        overflow-x: auto;
        margin-left: 0;
    }

    .header-search {
        margin-left: auto;
    }

    .categories-grid,
    .models-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .site-container,
    .header-container,
    .footer-container,
    .model-container,
    .models-container {
        width: min(92%, 1240px);
    }

    .site-header {
        position: relative;
    }

    .header-search {
        display: none;
    }

    .main-navigation {
        gap: 18px;
        padding-bottom: 3px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 65px 0;
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-search {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 8px;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
        border-radius: 8px;
        min-height: 52px;
    }

    .categories-grid,
    .models-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 17px;
    }

    .model-card-content {
        padding: 13px;
    }

    .model-card-title {
        font-size: 15px;
    }

    .section-heading {
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .model-content,
    .model-download {
        padding: 22px;
    }
}

/* ===== 3D MODEL DETAILS ===== */

.model-details {
    margin: 28px 0;
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eeeeee;
}

.model-details h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
}

.model-details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.model-detail-item {
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.model-detail-label {
    font-size: 12px;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-detail-value {
    font-size: 15px;
    color: #111111;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .model-details {
        padding: 20px;
        margin: 20px 0;
    }

    .model-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-detail-item:last-child {
        grid-column: 1 / -1;
    }
}
/* ===== YELLOWSTL GLOBAL DESIGN ===== */

:root {
    --yellowstl-primary: #FFC400;
    --yellowstl-primary-dark: #E5AD00;
    --yellowstl-bg: #F7F8FA;
    --yellowstl-card: #FFFFFF;
    --yellowstl-text: #171717;
    --yellowstl-text-light: #666666;
    --yellowstl-border: #E8E8E8;
}
/* ===== GLOBAL PAGE STYLE ===== */

body {
    background: var(--yellowstl-bg);
    color: var(--yellowstl-text);
}

.model-content {
    color: var(--yellowstl-text);
}

.model-content p {
    color: var(--yellowstl-text-light);
}

.model-details {
    background: var(--yellowstl-card);
    border-color: var(--yellowstl-border);
}

.model-detail-item {
    background: var(--yellowstl-bg);
    border-color: var(--yellowstl-border);
}

.model-details h2,
.model-detail-value {
    color: var(--yellowstl-text);
}
/* ===== YELLOWSTL BUTTONS ===== */

.download-button {
    background: var(--yellowstl-primary);
    color: #171717;
    font-weight: 700;
    border-radius: 10px;
    transition: 0.2s ease;
}

.download-button:hover {
    background: var(--yellowstl-primary-dark);
    color: #171717;
}

/* ===== YELLOWSTL TITLES ACCENT ===== */

.model-details h2 {
    border-left: 5px solid var(--yellowstl-primary);
    padding-left: 14px;
}

.model-detail-item {
    border-top: 3px solid var(--yellowstl-primary);
}

.model-detail-label {
    color: var(--yellowstl-text-light);
}

.model-detail-value {
    color: var(--yellowstl-text);
}

/* ===== YELLOWSTL GLOBAL TYPOGRAPHY ===== */

body {
    font-family: Arial, Helvetica, sans-serif;
}

.model-content {
    font-size: 17px;
    line-height: 1.7;
}

.model-content p {
    font-size: inherit;
    line-height: inherit;
}

.model-details h2 {
    font-size: 26px;
    font-weight: 700;
}

.model-detail-label {
    font-size: 12px;
}

.model-detail-value {
    font-size: 16px;
    font-weight: 700;
}
