/**
 * StringUp Theme - Styles
 * Design system: Kreandoweb-auth (--st-* variables)
 * Tema minimale, pulito, moderno
 * Versione: 1.0.0
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --st-primary: #6366f1;
    --st-primary-dark: #4f46e5;
    --st-primary-light: #e0e7ff;
    --st-gray-50: #f8fafc;
    --st-gray-100: #f1f5f9;
    --st-gray-200: #e2e8f0;
    --st-gray-300: #cbd5e1;
    --st-gray-400: #94a3b8;
    --st-gray-500: #64748b;
    --st-gray-600: #475569;
    --st-gray-700: #334155;
    --st-gray-800: #1e293b;
    --st-gray-900: #0f172a;
    --st-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --st-radius: 12px;
    --st-radius-sm: 8px;
    --st-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --st-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1),
                    0 2px 4px -2px rgba(0,0,0,0.1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--st-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--st-gray-800);
    background: var(--st-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--st-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--st-primary-dark);
}

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

/* ========================================
   HEADER
   ======================================== */
.stringup-theme-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--st-gray-50) 100%);
    border-bottom: 1px solid var(--st-gray-200);
    box-shadow: var(--st-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Admin bar offset */
body.admin-bar .stringup-theme-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .stringup-theme-header {
        top: 46px;
    }
}

.stringup-theme-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

/* Logo */
.stringup-theme-logo a {
    display: flex;
    align-items: center;
}

.stringup-theme-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.stringup-theme-site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--st-gray-900);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.stringup-theme-site-title:hover {
    color: var(--st-primary);
}

/* Menu */
.stringup-theme-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.stringup-theme-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--st-primary);
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.stringup-theme-menu li a:hover {
    background: var(--st-primary-dark);
    box-shadow: var(--st-shadow-md);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.stringup-theme-main {
    flex: 1;
    width: 100%;
}

.stringup-theme-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Pagina */
.stringup-theme-page-content {
}

/* Articolo */
.stringup-theme-article {
    background: #ffffff;
    border-radius: var(--st-radius);
    padding: 40px;
    box-shadow: var(--st-shadow);
    border: 1px solid var(--st-gray-200);
    margin-bottom: 24px;
}

.stringup-theme-article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--st-gray-900);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.stringup-theme-article-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--st-gray-700);
}

/* Nessun contenuto */
.stringup-theme-no-content {
    text-align: center;
    padding: 80px 24px;
    color: var(--st-gray-500);
}

.stringup-theme-no-content h1 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--st-gray-700);
}

/* ========================================
   404 PAGE
   ======================================== */
.stringup-theme-404 {
    text-align: center;
    padding: 120px 24px;
}

.stringup-theme-404 h1 {
    font-size: 96px;
    font-weight: 800;
    color: var(--st-gray-200);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.stringup-theme-404 p {
    font-size: 18px;
    color: var(--st-gray-500);
    margin-bottom: 32px;
}

.stringup-theme-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--st-primary);
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.stringup-theme-btn:hover {
    background: var(--st-primary-dark);
    box-shadow: var(--st-shadow-md);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ========================================
   FOOTER
   ======================================== */
.stringup-theme-footer {
    border-top: 1px solid var(--st-gray-200);
    background: #ffffff;
    padding: 24px 0;
    margin-top: auto;
}

.stringup-theme-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.stringup-theme-footer p {
    font-size: 13px;
    color: var(--st-gray-400);
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .stringup-theme-header-inner {
        min-height: 64px;
        padding: 0 16px;
    }

    .stringup-theme-logo-img {
        height: 40px;
    }

    .stringup-theme-site-title {
        font-size: 18px;
    }

    .stringup-theme-menu li a {
        padding: 8px 18px;
        font-size: 13px;
    }

    .stringup-theme-content {
        padding: 24px 16px;
    }

    .stringup-theme-article {
        padding: 24px 20px;
        border-radius: var(--st-radius-sm);
    }

    .stringup-theme-article-title {
        font-size: 22px;
    }

    .stringup-theme-404 {
        padding: 80px 16px;
    }

    .stringup-theme-404 h1 {
        font-size: 64px;
    }

    .stringup-theme-footer-inner {
        padding: 0 16px;
    }
}
