/* Region Redistribution Project - Dark Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #0a0a0a;
    min-height: 100vh;
    color: #b0b0b0;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid #2a2a2a;
    padding: 15px 0;
    margin-bottom: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(90deg, #0080ff 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(0, 128, 255, 0.1);
    border-color: #0080ff;
}

/* Container */
.container {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid #2a2a2a;
}

.content {
    color: #b0b0b0;
}

/* Typography */
h1 {
    color: #ffffff;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #0080ff 0%, #d946ef 100%);
    border-image-slice: 1;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 2.5rem;
}

h2 {
    background: linear-gradient(90deg, #0080ff 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 2rem;
}

h3 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

h4 {
    color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

h5, h6 {
    color: #e0e0e0;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Links */
a {
    color: #0080ff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #d946ef;
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #b0b0b0;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

ul strong, ol strong {
    color: #e0e0e0;
}

/* Code */
code {
    color: #0080ff;
    background: #0a0a0a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

pre code {
    color: #b0b0b0;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

th {
    background: linear-gradient(135deg, #0080ff 0%, #d946ef 100%);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #252525;
}

/* Strong/Bold */
strong {
    font-weight: 600;
    color: #e0e0e0;
}

/* Emphasis/Italic */
em {
    font-style: italic;
    color: #d0d0d0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #0080ff;
    padding-left: 20px;
    margin: 20px 0;
    color: #d0d0d0;
    font-style: italic;
    background: #1e1e1e;
    padding: 15px 20px;
    border-radius: 4px;
}

/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #0080ff 0%, #d946ef 100%);
    margin: 30px 0;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    background: #1e1e1e;
}

.card:hover {
    border-color: #0080ff;
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.3);
    transform: translateY(-2px);
}

.card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 18px;
}

.card p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #0080ff 0%, #d946ef 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 70, 239, 0.4);
}

/* File Lists */
.file-list {
    background: #252525;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #2a2a2a;
}

.file-list strong {
    color: #e0e0e0;
}

.file-list ul {
    margin: 10px 0;
    padding-left: 20px;
}

.file-list li {
    margin: 5px 0;
    color: #b0b0b0;
}

.file-list code {
    color: #0080ff;
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 2px solid #2a2a2a;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

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

    .container {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
