﻿/* Clearout Junk Global Styles - app.css */

/* CSS CUSTOM PROPERTIES (VARIABLES) */
:root {
    /* Brand Colors - Eco-Friendly Green Palette */
    --primary-color: #4a7c59;
    --primary-dark: #2c5530;
    --primary-light: #68a077;
    --secondary-color: #ff6b35;
    --secondary-dark: #e55a2b;
    --accent-color: #ffd700;
    --accent-light: #ffed4e;
    /* Status Colors */
    --success-color: #48bb78;
    --warning-color: #f6ad55;
    --error-color: #e53e3e;
    --info-color: #4299e1;
    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #666;
    --text-light: #718096;
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f1f3f4;
    --bg-dark: #2d3748;
    --bg-darker: #1a202c;
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --border-dark: #a0aec0;
    /* Clearout Junk Brand Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    --gradient-cta: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    /* Spacing & Layout */
    --section-padding: 80px 0;
    --section-padding-sm: 60px 0;
    --container-padding: 0 20px;
    --container-max-width: 1200px;
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 25px;
    --border-radius-pill: 50px;
    /* Typography */
    --font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    /* Transitions & Animations */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    /* Shadows - Professional & Clean */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    *::before,
    *::after {
        box-sizing: border-box;
    }

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    font-size: 16px;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    color: white;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout overrides for Blazor */
.page, main, article, .content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: var(--border-radius-sm);
    }

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Strong and Emphasis */
strong, b {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

em, i {
    font-style: italic;
}

/* LAYOUT COMPONENTS */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: var(--container-padding);
}

/* Section Spacing */
.section {
    padding: var(--section-padding);
}

.section-sm {
    padding: var(--section-padding-sm);
}

/* BUTTONS - Clearout Junk Style */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
}

    .btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Button Variants */
.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

    .btn-primary:hover {
        background: var(--secondary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
        color: white;
        text-decoration: none;
    }

.btn-secondary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

    .btn-secondary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(74, 124, 89, 0.4);
        color: white;
        text-decoration: none;
    }

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

    .btn-outline:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-outline-white:hover {
        background: white;
        color: var(--primary-color);
        transform: translateY(-2px);
        text-decoration: none;
    }

/* Button Sizes */
.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-lg);
}

.btn-xl {
    padding: 1.5rem 3rem;
    font-size: var(--font-size-xl);
}

/* Button Block */
.btn-block {
    width: 100%;
    display: block;
}

/* FORM ELEMENTS */
input, select, textarea {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    width: 100%;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
    }

    input::placeholder, textarea::placeholder {
        color: var(--text-light);
    }

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: white;
}

.bg-primary {
    background-color: var(--primary-color);
}

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

.bg-white {
    background-color: var(--bg-white);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.p-0 {
    padding: 0;
}

/* Spacing Scale */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --section-padding-sm: 40px 0;
        --container-padding: 0 15px;
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: var(--font-size-base);
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --section-padding-sm: 30px 0;
    }

    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }
}

/* ACCESSIBILITY & MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for better keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --border-medium: #000000;
        --text-secondary: #000000;
    }
}

/* PRINT STYLES */
@media print {
    * {
        color: #000 !important;
        text-shadow: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .btn {
        border: 1px solid #000;
        color: #000;
        background: transparent;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}
