﻿/**
 * Homepage Styles
 * Standalone CSS for the "/" template
 * Utility classes matching live site's Tailwind structure
 */
/* ============================================
   CRITICAL: Tailwind-like Border Reset (Preflight)
   This ensures border utilities work correctly by
   setting default border-style to solid (not none)
   ============================================ */
*,
::before,
::after {
    border-width: 0;
    border-style: solid;
    border-color: hsl(0, 0%, 88%);
}

/* Default list styling */
ul, ol {
    padding-left: 1.5rem;
    margin-left: 0;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}
/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.min-h-screen {
    min-height: 100vh;
}

.pt-16 {
    padding-top: 4rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pl-4 {
    padding-left: 1rem;
}

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

.mt-20 {
    margin-top: 5rem;
}

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

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

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

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

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

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

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.space-y-0 > * + * {
    margin-top: 0;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */
.flex {
    display: flex;
}

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

.flex-1 {
    flex: 1 1 0%;
}

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

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

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

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid {
    display: grid;
}

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

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

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

.hidden {
    display: none;
}

/* Desktop grid columns */
@media (min-width: 768px) {
    .md-grid,
    .md\:grid {
        display: grid;
    }
    
    .md-grid-cols-4,
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md-grid-cols-12,
    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    
    .md-col-span-1,
    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }
    
    .md-col-span-2,
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .md-col-span-5,
    .md\:col-span-5 {
        grid-column: span 5 / span 5;
    }
    
    .md-flex-row,
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md-items-start,
    .md\:items-start {
        align-items: flex-start;
    }
    
    .md-justify-between,
    .md\:justify-between {
        justify-content: space-between;
    }
    
    .md-text-6xl,
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-3,
    .lg\:grid-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg-col-span-2,
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .lg-block,
    .lg\:block {
        display: block;
    }
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-5 {
    grid-column: span 5 / span 5;
}

/* ============================================
   SIZING UTILITIES
   ============================================ */
.max-w-4xl {
    max-width: 56rem;
}

.h-1 {
    height: 0.25rem;
}

.w-12 {
    width: 3rem;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

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

/* ============================================
   COLOR UTILITIES
   ============================================ */
.bg-primary {
    background-color: hsl(var(--primary));
}

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

.bg-muted-30 {
    background-color: hsl(var(--muted) / 0.3);
}

.text-foreground {
    color: hsl(var(--foreground));
}

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

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

.text-destructive {
    color: hsl(var(--destructive));
}

.text-high {
    color: hsl(var(--high));
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* ============================================
   BORDER UTILITIES
   ============================================ */
.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-b-2 {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-border {
    border-color: hsl(var(--border));
}

.border-primary {
    border-color: hsl(var(--primary));
}

.border-muted {
    border-color: hsl(var(--muted));
}

/* ============================================
   SIDEBAR COMPONENTS
   ============================================ */
.sidebar-stats {
    background-color: hsl(var(--muted) / 0.3);
    padding: 1rem;
}

/* ============================================
   INTERACTIVE UTILITIES
   ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

.hover-text-foreground:hover {
    color: hsl(var(--foreground));
}

.hover-bg-muted:hover {
    background-color: hsl(var(--muted) / 0.3);
}

/* ============================================
   ICON UTILITIES
   ============================================ */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    height: 2.75rem;
    padding: 0 2rem;
    background-color: hsl(var(--foreground));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-outline-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    height: 2.5rem;
    padding: 0 1rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-outline-view:hover {
    background-color: hsl(var(--muted));
}

.btn-link-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    height: 2.5rem;
    padding: 0 1rem;
    color: hsl(var(--primary));
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

.btn-link-primary:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.badge-critical {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

.badge-high {
    background-color: hsl(var(--high));
    color: hsl(var(--high-foreground));
    border-color: hsl(var(--high));
}

.badge-medium {
    background-color: hsl(var(--medium));
    color: hsl(var(--medium-foreground));
    border-color: hsl(var(--medium));
}

.badge-low {
    background-color: hsl(var(--low));
    color: hsl(var(--low-foreground));
    border-color: hsl(var(--low));
}

.badge-active {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

.badge-patched {
    background-color: hsl(var(--success));
    color: hsl(var(--success-foreground));
    border-color: hsl(var(--success));
}

.badge-investigating {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

/* ============================================
   CONTAINER (inherits from index.css)
   ============================================ */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
