/* wFabricSecurity Custom Styles */

/* ========================
   Color Variables
   ======================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4CAF50;
    --text-color: #333333;
    --text-muted: #666666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --code-background: #2d2d2d;
}

/* ========================
   Typography
   ======================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
}

/* ========================
   Code Blocks
   ======================== */
.highlight pre {
    background-color: var(--code-background);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.highlight-python pre,
.highlight-bash pre {
    background-color: var(--code-background);
    color: #f8f8f2;
}

/* Inline code */
code {
    background-color: var(--background-light);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ========================
   Tables
   ======================== */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--background-light);
}

/* ========================
   Admonitions
   ======================== */
div.admonition {
    border-radius: 8px;
    margin: 1rem 0;
    padding: 1rem;
}

div.note {
    background-color: #E3F2FD;
    border-left: 4px solid #2196F3;
}

div.warning {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
}

div.danger {
    background-color: #FFEBEE;
    border-left: 4px solid #F44336;
}

div.tip {
    background-color: #E8F5E9;
    border-left: 4px solid #4CAF50;
}

/* ========================
   Navigation
   ======================== */
.wy-nav-content {
    max-width: 900px;
}

.wy-side-nav-search {
    background-color: var(--primary-color);
}

.wy-side-nav-search > a {
    color: white;
    font-weight: 600;
}

/* ========================
   Badges
   ======================== */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    margin: 0.25em;
}

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

.badge-success {
    background-color: var(--accent-color);
    color: white;
}

.badge-warning {
    background-color: #FF9800;
    color: white;
}

/* ========================
   Feature Cards
   ======================== */
.feature-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
}

.feature-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ========================
   Hero Section (for index page)
   ======================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: white;
    border-bottom: none;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================
   Stats Row
   ======================== */
.stats-row {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.stat-item p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
}

/* ========================
   Grid Cards
   ======================== */
.grid-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ========================
   Footer
   ======================== */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
}

/* ========================
   Print Styles
   ======================== */
@media print {
    .hero-section {
        background: none;
        color: var(--text-color);
    }
    
    .badge {
        border: 1px solid var(--text-color);
    }
}
