/* Printivo - Material3 Inspired Theme */

:root {
    /* Material3 Brand Colors - Blue/Teal Theme (No Purple) */
    --lf-primary: #2563EB;
    --lf-primary-dark: #1D4ED8;
    --lf-primary-light: #3B82F6;
    --lf-secondary: #0891B2;
    --lf-accent: #10B981;
    --lf-dark: #1E293B;
    --lf-darker: #0F172A;
    --lf-light: #F8FAFC;
    --lf-gray: #64748B;
    --lf-gray-light: #E2E8F0;

    /* Material3 Gradients - Blue to Cyan */
    --lf-gradient: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
    --lf-gradient-dark: linear-gradient(135deg, #1D4ED8 0%, #0E7490 100%);

    /* Shadows */
    --lf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --lf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --lf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --lf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: var(--lf-font);
    margin: 0;
    padding: 0;
    background: var(--lf-light);
    color: var(--lf-dark);
    line-height: 1.6;
}

/* App Container */
.lf-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.lf-header {
    background: white;
    border-bottom: 1px solid var(--lf-gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lf-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lf-nav-brand {
    display: flex;
    align-items: center;
}

.lf-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--lf-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.lf-logo:hover {
    color: var(--lf-primary);
}

.lf-nav-links {
    display: flex;
    gap: 2rem;
}

.lf-nav-link {
    text-decoration: none;
    color: var(--lf-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.lf-nav-link:hover,
.lf-nav-link.active {
    color: var(--lf-primary);
}

.lf-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.lf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.lf-btn-primary {
    background: var(--lf-gradient);
    color: white;
    box-shadow: var(--lf-shadow);
}

.lf-btn-primary:hover {
    background: var(--lf-gradient-dark);
    box-shadow: var(--lf-shadow-lg);
    transform: translateY(-1px);
    color: white;
}

.lf-btn-ghost {
    background: transparent;
    color: var(--lf-gray);
}

.lf-btn-ghost:hover {
    color: var(--lf-primary);
    background: rgba(37, 99, 235, 0.1);
}

.lf-btn-secondary {
    background: white;
    color: var(--lf-dark);
    border: 1px solid var(--lf-gray-light);
}

.lf-btn-secondary:hover {
    border-color: var(--lf-primary);
    color: var(--lf-primary);
}

.lf-btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* Main Content */
.lf-main {
    flex: 1;
}

/* Hero Section */
.lf-hero {
    background: var(--lf-gradient);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.lf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lf-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lf-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.lf-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lf-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lf-hero .lf-btn-primary {
    background: white;
    color: var(--lf-primary);
}

.lf-hero .lf-btn-primary:hover {
    background: var(--lf-light);
    transform: translateY(-2px);
}

.lf-hero .lf-btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.lf-hero .lf-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* Features Section */
.lf-features {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.lf-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lf-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lf-dark);
    margin-bottom: 1rem;
}

.lf-section-header p {
    font-size: 1.1rem;
    color: var(--lf-gray);
    max-width: 600px;
    margin: 0 auto;
}

.lf-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lf-feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--lf-shadow);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.lf-feature-card:hover {
    box-shadow: var(--lf-shadow-xl);
    transform: translateY(-4px);
    border-color: var(--lf-primary);
}

.lf-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--lf-gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.lf-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--lf-dark);
}

.lf-feature-card p {
    color: var(--lf-gray);
    line-height: 1.7;
}

/* Pricing Section */
.lf-pricing {
    padding: 5rem 2rem;
    background: var(--lf-darker);
    color: white;
}

.lf-pricing .lf-section-header h2 {
    color: white;
}

.lf-pricing .lf-section-header p {
    color: rgba(255,255,255,0.7);
}

.lf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.lf-pricing-card {
    background: var(--lf-dark);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.lf-pricing-card.featured {
    background: var(--lf-gradient);
    transform: scale(1.05);
}

.lf-pricing-card:hover {
    border-color: var(--lf-primary);
}

.lf-pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lf-pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.lf-pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.lf-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.lf-pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lf-pricing-features li::before {
    content: '\2713';
    color: var(--lf-accent);
    font-weight: bold;
}

/* Footer */
.lf-footer {
    background: var(--lf-darker);
    color: white;
    padding: 4rem 2rem 2rem;
}

.lf-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
}

.lf-footer-brand .lf-logo {
    color: white;
    margin-bottom: 1rem;
}

.lf-footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.lf-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.lf-footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.lf-footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 0.375rem 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.lf-footer-col a:hover {
    color: white;
}

.lf-footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Page Container */
.lf-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.lf-page-header {
    margin-bottom: 2rem;
}

.lf-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lf-dark);
    margin-bottom: 0.5rem;
}

.lf-page-header p {
    color: var(--lf-gray);
    font-size: 1.1rem;
}

/* Tool Container */
.lf-tool-container {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--lf-shadow-lg);
    overflow: hidden;
}

.lf-tool-header {
    background: var(--lf-gradient);
    color: white;
    padding: 1.5rem 2rem;
}

.lf-tool-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.lf-tool-body {
    padding: 2rem;
}

.lf-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Cards */
.lf-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--lf-shadow);
    border: 1px solid var(--lf-gray-light);
}

.lf-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lf-dark);
    margin-bottom: 1rem;
}

/* Forms */
.lf-form-group {
    margin-bottom: 1.5rem;
}

.lf-form-label {
    display: block;
    font-weight: 500;
    color: var(--lf-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.lf-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lf-gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.lf-form-input:focus {
    outline: none;
    border-color: var(--lf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Preview Box */
.lf-preview {
    background: var(--lf-light);
    border: 2px dashed var(--lf-gray-light);
    border-radius: 0.75rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lf-preview img {
    max-width: 100%;
    max-height: 700px;
}

/* Responsive */
@media (max-width: 768px) {
    .lf-nav {
        padding: 0 1rem;
    }

    .lf-nav-links {
        display: none;
    }

    .lf-hero h1 {
        font-size: 2.5rem;
    }

    .lf-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lf-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .lf-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Error UI */
#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 1rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}
