/* Import Google Fonts for specific designs */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');


/* General section styling - ensuring dark theme consistency */
section {
    padding: 80px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background-color: var(--background-dark); /* Global dark background from base.html */
}

/* Header Section (formerly Hero Section concept) */
.header-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #222831 100%); /* Dark blues/greys */
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: #f8f8f2;
    margin-bottom: 0; /* No margin below the header section */
    border-radius: 0 0 12px 12px; /* Rounded corners only at the bottom */
}
.header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%233a3a5a" stroke-width="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid-pattern)" /></svg>');
    opacity: 0.1;
    z-index: 0;
}
.header-section .container {
    position: relative;
    z-index: 1;
}
.text-header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #e94560; /* Neon pink/red accent */
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.7);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.text-header-sub {
    color: #ffb846; /* Neon orange */
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Section */
.main-content-section {
    background-color: #282a36; /* Dracula theme background for content area */
    padding: 60px 0;
    margin-top: -15px; /* Pull it slightly up to overlap the header's rounded bottom */
    border-radius: 12px 12px 0 0; /* Rounded corners only at the top */
}
.text-main-content-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #f8f8f2; /* Light text for dark background */
    margin-bottom: 3rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Application Feature Block */
.app-feature-link {
    color: inherit; /* Ensure link color is inherited */
    text-decoration: none; /* Remove underline */
}
.app-feature-block {
    background-color: #44475a; /* Dracula current line */
    border: 1px solid #6272a4; /* Dracula comment */
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #f8f8f2; /* Default text color for the block */
}
.app-feature-block:hover {
    background-color: #55586a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.text-app-icon {
    color: #50fa7b; /* Green accent */
}
.text-app-name {
    color: #8be9fd; /* Cyan accent */
    font-weight: bold;
}
.text-app-description {
    color: #f8f8f2;
    font-size: 0.95rem;
}


/* Base body font and overrides for global dark theme */
body {
    font-family: 'Lora', serif; /* Default font from base.html */
    color: var(--text-light-gray); /* Ensure default text color respects base.html */
}



/* About Page Tactical Components */
.about-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tactical-card {
    background-color: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tactical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.tactical-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    display: block;
    text-transform: uppercase;
}

.commander-img-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.commander-img {
    width: 100%;
    max-width: 280px;
    border: 1px solid var(--navbar-border);
    padding: 6px;
    background-color: var(--bg-color);
    filter: grayscale(0.5) contrast(1.1);
    transition: filter 0.3s ease;
}

.commander-img:hover {
    filter: grayscale(0) contrast(1.1);
}

.system-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    padding: 0.75rem;
    border: 1px dashed var(--navbar-border);
    background-color: rgba(255, 255, 255, 0.02);
}

.status-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--muted-text-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.status-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
}

.patton-quote {
    font-style: italic;
    border-left: 2px solid var(--navbar-border);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--muted-text-color);
}

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .tactical-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .commander-img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    .system-status-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on small mobile */
        gap: 0.5rem;
    }

    .status-item {
        padding: 0.5rem;
    }

    .status-value {
        font-size: 0.75rem;
    }
}

/* Extra small screens (360px-450px) - as per GUIDING_PRINCIPLES.md */
@media (max-width: 450px) {
    .command-brand {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .command-link-compact {
        font-size: 0.55rem;
    }

    .tactical-header {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }

    .patton-quote {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .mono p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .system-status-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}
