/* LLM Garage - Shared Stylesheet */
/* Based on dark theme styling from report.html */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #0f1117;
    color: #d4d4d8;
}

.header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-style: normal;
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.date {
    color: #71717a;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.content {
    background: #18181b;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #27272a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h2 {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1.5rem;
    border-bottom: 2px solid #292524;
    padding-bottom: 0.4rem;
    margin-top: 30px;
    margin-bottom: 1rem;
}

h3 {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 0.5rem;
}

code {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 3px;
    padding: 2px 5px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    color: #e4e4e7;
}

pre {
    background: #1c1c20;
    border: 1px solid #27272a;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85em;
    color: #d4d4d8;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
    color: #f59e0b;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.92rem;
}

th, td {
    border: 1px solid #27272a;
    padding: 0.55rem 1rem;
    text-align: left;
    border-bottom: 1px solid #27272a;
}

th {
    background: #292524;
    color: #f59e0b;
    font-weight: 600;
    border-bottom: 2px solid #44403c;
}

tr:nth-child(even) td {
    background: #1c1c20;
}

tr:hover td {
    background: #27272a;
}

.warning {
    background: #1c1917;
    border: 1px solid #45403c;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 10px 0;
}

.solution-box {
    background: #1c1c22;
    border-left: 4px solid #10b981;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 15px 0;
}

.issue-box {
    background: #1c1917;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 15px 0;
}

.result-box {
    background: #1c1c20;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 15px 0;
}

.highlight {
    background: #1c1917;
    border-left: 3px solid #f59e0b;
    padding: 10px;
    margin: 10px 0;
}

.myth-box {
    background: #1c1c20;
    border-left: 3px solid #6b7280;
    padding: 15px;
    margin: 15px 0;
}

.reality-box {
    background: #1c1c22;
    border-left: 3px solid #10b981;
    padding: 15px;
    margin: 15px 0;
}

.test-result {
    background: #1c1c20;
    border: 1px solid #27272a;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.key-feature {
    background: #1c1c20;
    border-left: 3px solid #3b82f6;
    padding: 15px;
    margin: 15px 0;
}

.why-it-matters {
    background: #1c1917;
    border-left: 3px solid #f59e0b;
    padding: 15px;
    margin: 15px 0;
}

.script-box {
    background: #1c1c20;
    border: 1px solid #27272a;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.example-box {
    background: #1c1c22;
    border: 1px solid #27272a;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #18181b;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.gallery-item {
    text-align: center;
    background: #1c1c20;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.gallery-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #27272a;
}

.image-container .caption {
    text-align: center;
    font-style: italic;
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-top: 10px;
}

.image-container {
    text-align: center;
    margin: 20px 0;
    width: 100%;
    max-width: 500px;
}

.blog-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    color: #f59e0b;
    font-weight: 600;
    border-bottom: 2px solid #292524;
    padding-bottom: 0.4rem;
    margin-bottom: 15px;
}

.blog-list {
    list-style: none;
    padding: 0;
}

.blog-item {
    background: #18181b;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #27272a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.blog-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-color: #f59e0b;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-title a {
    color: #fbbf24;
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
    color: #f59e0b;
}

.blog-desc {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.banner {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #27272a;
}

.banner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 1.5rem;
    border-top: 1px solid #27272a;
    color: #71717a;
    font-size: 0.85rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.3rem;
    color: #d4d4d8;
}

strong {
    color: #e4e4e7;
}

p {
    margin-bottom: 1rem;
    color: #d4d4d8;
}

a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

a:visited {
    color: #d97706;
}

.footer a {
    color: #fbbf24;
}

.footer a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Navigation Bar */
.nav {
    background: #0f1117;
    padding: 0.75rem 1rem;
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand:hover {
    color: #fbbf24;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #d4d4d8;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    color: #f59e0b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1c1c22;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    display: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #d4d4d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: #27272a;
    color: #f59e0b;
}

@media (max-width: 640px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    body { padding: 1rem 0.75rem; }
    th, td { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
}
