/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Georgia', serif;
    background-color: #0a0a0a;
    color: #d1d5db;
    line-height: 1.7;
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #f9fafb 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.header-links-section {
    margin: 24px auto 20px;
    max-width: 500px;
}

.header-links-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.header-links-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.link-label {
    color: #9ca3af;
    font-weight: 500;
    min-width: 70px;
    text-align: right;
}

.author-name {
    color: #d4af37;
    font-weight: 600;
}

.author-email,
.author-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.author-email:hover,
.author-link:hover {
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.author-link svg {
    fill: currentColor;
    display: block;
}

.meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.status {
    background: #f59e0b;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background: #0d0d0d;
}

.section-dark {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1410 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.section-heading {
    font-size: 32px;
    font-weight: 800;
    color: #f9fafb;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

.subsection-heading {
    font-size: 20px;
    font-weight: 600;
    color: #d4af37;
    margin: 32px 0 16px;
}

.body-text {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Lists */
.numbered-list {
    margin: 20px 0;
    padding-left: 24px;
}

.numbered-list li {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.7;
}

.bullet-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.bullet-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.bullet-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

thead {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    color: #d1d5db;
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Code Blocks */
.code-block {
    background: #0d0d0d;
    border: 1px solid #333;
    border-left: 3px solid #d4af37;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #d4af37;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
}

/* Visual Cards for Key Concepts */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.concept-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #333;
    border-left: 4px solid #d4af37;
    padding: 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.concept-card:hover {
    transform: translateY(-4px);
    border-left-color: #f4d03f;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.concept-card:hover::before {
    opacity: 1;
}

.concept-card h4 {
    color: #d4af37;
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 700;
}

.concept-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #b0b5bd;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-left: 4px solid #d4af37;
    border-radius: 4px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
}

.highlight-box p {
    margin: 0;
    font-size: 16px;
    color: #e5e7eb;
    line-height: 1.8;
}

/* Dev Status Card */
.dev-status-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141210 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 40px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.dev-status-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #d4af37;
}

.dev-status-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 16px;
}

/* Developer Info */
.dev-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #d4af37;
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.developer-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    padding: 32px;
    margin: 24px 0;
}

.developer-name {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.developer-bio {
    color: #d1d5db;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
}

.developer-contact {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.dev-contact-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s;
}

.dev-contact-link:hover {
    color: #f4d03f;
}

.developer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dev-link {
    background: transparent;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 4px;
    color: #d4af37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dev-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dev-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

/* Visual Divider */
.visual-divider {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 32px 0;
}

.divider-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.divider-text {
    flex: 1;
    font-size: 15px;
    color: #9ca3af;
    font-style: italic;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1410 100%);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    padding: 32px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.footer strong {
    color: #d4af37;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }
    
    .section-heading {
        font-size: 26px;
    }
    
    .developer-name {
        font-size: 20px;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .developer-card {
        padding: 20px;
    }
    
    .developer-links {
        flex-direction: column;
    }
    
    .dev-link {
        text-align: center;
    }
}
