/* style.css - Unique modern design for samarqanda.shop 
   Blue-violet sophisticated palette, magazine-inspired asymmetric layout
   Fully custom, responsive, no images - pure color, typography, CSS shapes
   Unique: Asymmetric hero elements, masonry-ish grid via grid + spans, soft rounded 3xl, generous spacing
*/

:root {
    --primary: #4C3D7A;
    --accent: #8B7FD1;
    --light-bg: #F7F5FC;
    --card: #FFFFFF;
    --text-dark: #2A2540;
    --text-muted: #6B6B7A;
    --border: #D9D0E8;
    --gradient: linear-gradient(135deg, #4C3D7A 0%, #6B5B95 100%);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.7;
}

/* Unique magazine typography */
h1, h2, h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
}

/* Modern card system - asymmetric friendly */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-color 0.2s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    border-color: var(--accent);
}

.card-accent {
    height: 6px;
    background: var(--gradient);
    border-radius: 24px 24px 0 0;
}

/* Asymmetric grid helper */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .asymmetric-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }
    .asymmetric-grid .card:nth-child(1) { grid-column: span 7; }
    .asymmetric-grid .card:nth-child(2) { grid-column: span 5; }
    .asymmetric-grid .card:nth-child(3) { grid-column: span 5; }
    .asymmetric-grid .card:nth-child(4) { grid-column: span 7; }
    .asymmetric-grid .card:nth-child(5) { grid-column: span 6; }
    .asymmetric-grid .card:nth-child(6) { grid-column: span 6; }
}

/* Sidebar unique */
.sidebar {
    position: sticky;
    top: 2rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: #F0EBF9;
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: var(--primary);
    color: white;
}

/* Buttons - unique pill-ish with violet */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: #3A2D5E;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(76 61 122 / 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #F0EBF9;
    border-color: var(--accent);
}

/* Form styles unique */
input, textarea, select {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 127, 209, 0.1);
}

/* Footer unique */
footer {
    background: #2A2540;
    color: #C8C2D9;
}

footer a {
    color: #C8C2D9;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* Legal pages - clean reading */
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
    margin-bottom: 1rem;
    color: #3F3A55;
}

.legal-content ul {
    padding-left: 1.25rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
}

/* Subtle decorative elements - color only, no images */
.decor-line {
    height: 3px;
    background: var(--gradient);
    width: 60px;
    border-radius: 999px;
}

/* Article page specific */
.article-body {
    font-size: 1.05rem;
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.article-body p {
    margin-bottom: 1.5rem;
}