/*
Theme Name: Autozzz
Description: Base Theme for Autozzz (theme-driven)
Author: AI Assistant
Version: 1.0.0
Text Domain: autozzz
*/

/* Basic Reset */
/* Basic Reset & Base Styling */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--az-text-dark);
    line-height: 1.6;
    background: var(--az-bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6, .site-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Design tokens (inspired by Design.md) */
:root {
    --az-bg-dark: #101010;
    --az-bg-light: #f4f3ef;
    --az-surface: #fbfbf9;
    --az-text-dark: #1a1a1a;
    --az-text-muted: #666666;
    --az-text-light: #f5f5f5;
    --az-primary: #344ce7;
    --az-primary-hover: #2236d2;
    --az-radius: 8px;
    --az-radius-lg: 16px;
    --az-container: 1120px;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Navigation */
.site-header {
    background: var(--az-surface);
    border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.home .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.85;
}

.site-description {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--az-text-muted);
}

.home .site-description {
    color: rgba(245, 245, 245, 0.78);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-list li a {
    text-decoration: none;
    color: var(--az-text-dark);
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-list li a:hover {
    color: var(--az-primary);
}

/* Header polish (homepage dark hero) */
.home .site-header {
    background: var(--az-bg-dark);
}

.home .nav-list li a {
    color: var(--az-text-light);
}

.home .nav-list li a:hover {
    color: var(--az-text-light);
    opacity: 0.85;
}

.home .site-title a,
.home .site-description {
    color: var(--az-text-light) !important;
}

@media (max-width: 820px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .main-navigation {
        width: 100%;
    }
}

/* Footer Navigation & Structure */
.site-footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(16, 16, 16, 0.08);
    background: var(--az-surface);
    margin-top: 64px;
    color: var(--az-text-muted);
}

.footer-navigation {
    margin-bottom: 24px;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 20px;
}

.footer-nav-list li a {
    text-decoration: none;
    color: var(--az-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-nav-list li a:hover {
    color: var(--az-primary);
    text-decoration: underline;
}

.site-info p {
    margin: 0;
    font-size: 14px;
}

.site-info a {
    text-decoration: none;
    color: var(--az-text-dark);
    font-weight: 600;
    transition: color 0.15s ease;
}

.site-info a:hover {
    color: var(--az-primary);
}

/* Prompt Card / Copy Button Styles */
.copy-prompt-btn {
    width: 100%;
    background: var(--az-primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--az-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(52, 76, 231, 0.2);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.copy-prompt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.copy-prompt-btn:hover {
    background: var(--az-primary-hover);
    box-shadow: 0 8px 20px rgba(52, 76, 231, 0.3);
    transform: translateY(-2px);
}

.copy-prompt-btn:hover::before {
    left: 100%;
}

.copy-prompt-btn:active {
    transform: translateY(0);
}

.copy-prompt-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.copy-btn-text {
    display: inline-block;
}

/* Success state */
.copy-prompt-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3) !important;
}

/* Home page layout */
.az-topbar {
    background: var(--az-bg-dark);
    color: var(--az-text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.az-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

.az-topbar__link {
    color: var(--az-text-light);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.95;
}

.az-topbar__link:hover {
    opacity: 0.8;
}

.az-hero {
    background: var(--az-bg-dark);
    color: var(--az-text-light);
    padding: 64px 0 56px;
}

.az-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.az-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.az-hero__title {
    margin: 0 0 12px 0;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    max-width: 672px;
}

.az-hero__subtitle {
    margin: 0 0 24px 0;
    font-size: 18px;
    line-height: 27px;
    color: rgba(245, 245, 245, 0.92);
    max-width: 672px;
}

.az-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.az-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--az-radius);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22.4px;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.az-btn--primary {
    background: var(--az-primary);
    color: #ffffff;
}

.az-btn--primary:hover {
    background: var(--az-primary-hover);
    opacity: 1;
}

.az-btn--secondary {
    background: transparent;
    color: var(--az-text-dark);
    border: 1px solid rgba(16, 16, 16, 0.22);
}

.az-btn--secondary:hover {
    opacity: 0.85;
}

.az-btn--search {
    background: var(--az-surface);
    color: var(--az-bg-dark);
    padding: 12px 18px;
}

/* Dark-context overrides (hero/topbar) */
.az-hero .az-btn--primary,
.az-topbar .az-btn--primary {
    background: var(--az-surface);
    color: var(--az-bg-dark);
}

.az-hero .az-btn--primary:hover,
.az-topbar .az-btn--primary:hover {
    opacity: 0.92;
    background: var(--az-surface);
}

.az-hero .az-btn--secondary,
.az-topbar .az-btn--secondary {
    color: var(--az-text-light);
    border-color: rgba(255, 255, 255, 0.9);
}

.az-btn--sm {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 20px;
}

.az-search {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    max-width: 672px;
}

.az-search__input {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--az-text-light);
    padding: 0 14px;
    outline: none;
}

.az-search__input::placeholder {
    color: rgba(245, 245, 245, 0.65);
}

.az-hero__visual {
    position: relative;
    min-height: 360px;
}

.az-hero__blob {
    position: absolute;
    filter: blur(28px);
    opacity: 0.9;
    border-radius: 999px;
}

.az-hero__blob--1 {
    width: 240px;
    height: 240px;
    background: rgba(52, 76, 231, 0.45);
    top: 24px;
    right: 46px;
}

.az-hero__blob--2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 26, 144, 0.28);
    bottom: 22px;
    left: 8px;
}

.az-hero__card {
    position: absolute;
    inset: 56px 28px auto 28px;
    background: rgba(16, 16, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--az-radius-lg);
    padding: 18px;
}

.az-hero__cardTitle {
    font-weight: 700;
    margin-bottom: 12px;
}

.az-hero__pill {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin: 6px 8px 0 0;
    font-size: 13px;
    color: rgba(245, 245, 245, 0.95);
}

.az-section {
    padding: 64px 0;
}

.az-section--light {
    background: var(--az-bg-light);
}

.az-sectionHead {
    margin-bottom: 24px;
}

.az-h2 {
    margin: 0 0 10px 0;
    font-size: 36px;
    line-height: 43.2px;
    font-weight: 800;
    letter-spacing: -0.36px;
    color: var(--az-text-dark);
}

.az-lead {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: rgba(26, 26, 26, 0.78);
    max-width: 720px;
}

.az-grid {
    display: grid;
    gap: 24px;
}

.az-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.az-grid--prompts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.az-card {
    background: var(--az-surface);
    border-radius: var(--az-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(16, 16, 16, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.az-card__imgLink {
    display: block;
    text-decoration: none;
}

.az-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.az-card__img--placeholder {
    height: 180px;
}

.az-card__body {
    padding: 18px;
}

.az-card__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.az-card__title a {
    color: var(--az-text-dark);
    text-decoration: none;
}

.az-card__title a:hover {
    opacity: 0.85;
}

.az-card__text {
    margin: 0 0 14px 0;
    color: rgba(26, 26, 26, 0.72);
    font-size: 14px;
    line-height: 21px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.az-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.az-sectionFoot {
    margin-top: 22px;
}

.az-empty {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: var(--az-radius-lg);
    padding: 18px;
}

@media (max-width: 980px) {
    .az-hero__grid {
        grid-template-columns: 1fr;
    }

    .az-hero__visual {
        min-height: 260px;
    }

    .az-grid--3,
    .az-grid--prompts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .az-grid--3,
    .az-grid--prompts {
        grid-template-columns: 1fr;
    }

    .az-search {
        flex-direction: column;
        align-items: stretch;
    }

    .az-btn--search {
        width: 100%;
    }
}
