/* home.css - Complete Home page styles */

#homePage {
    background-color: #121212;
    min-height: 100vh;
}

/* Top section with menu and header */
.top-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    border-bottom: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hamburger-group {
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.hamburger-btn {
    background: none;
    border: none;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
}

.hamburger-btn:hover {
    opacity: 0.8;
    color: #4a6fa5;
}

.home-text {
    margin: 0 0 0 24px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
    font-weight: 400;
}

/* Coderive logo and text container */
.coderive-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background-color: #2a2a2a;
    border-top: 1px solid #444;
    padding: 0;
}

.coderive-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'JetBrains Mono Light', monospace;
    padding: 20px 0 20px 20px;
    margin: 0;
    flex-shrink: 0;
}

.coderive-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 0 12px 0;
    padding: 0;
    display: block;
    border: 2px solid #555;
    border-radius: 4px;
    filter: brightness(0.9);
}

.coderive-text {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #e0e0e0;
    font-family: 'JetBrains Mono Light', monospace;
    font-weight: 300;
    white-space: nowrap;
}

.description {
    font-family: 'JetBrains Mono Light', monospace;
    padding: 0 20px 0 20px;
    margin: 0;
    background-color: #2a2a2a;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 300px;
    min-width: 250px;
    text-indent: 2em;
    display: flex;
    align-items: center;
}

/* CTA Section - ONLY call-to-action content */
.cta-section {
    background-color: #1e1e1e;
    padding: 40px 20px;
    text-align: center;
    border-bottom: none;
}

.cta-title {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 28px;
    color: #e0e0e0;
    margin-bottom: 16px;
    font-weight: 300;
}

.cta-description {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cta-button.primary {
    background-color: #4a6fa5;
    color: white;
    border-color: #5d7eb5;
}

.cta-button.primary:hover {
    background-color: #5d7eb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: #e0e0e0;
    border-color: #4a4a4a;
}

.cta-button.secondary:hover {
    background-color: #2a2a2a;
    border-color: #6a6a6a;
    transform: translateY(-2px);
}

.cta-button.tertiary {
    background-color: #2a2a2a;
    color: #b0b0b0;
    border-color: #4a4a4a;
}

.cta-button.tertiary:hover {
    background-color: #3a3a3a;
    color: #e0e0e0;
    transform: translateY(-2px);
}

/* Code header - separate title */
.code-header {
    margin: 40px 20px 20px 20px; 
    padding-top: 40px;
    border-top: 1px solid #3a3a3a;
    text-align: center;
}

.code-title {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 26px;
    color: #e0e0e0;
    font-weight: 300;
}

/* Repo info section - between title and code */
.repo-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    background-color: #1e1e1e;
    flex-wrap: wrap;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'JetBrains Mono Light', monospace;
    border: 1px solid #4a4a4a;
    transition: all 0.2s ease;
}

.repo-link:hover {
    background-color: #3a3a3a;
    border-color: #6a6a6a;
    transform: translateY(-1px);
}

.repo-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.file-path {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 12px;
    color: #888;
    background-color: #2a2a2a;
    padding: 4px 16px;
    border-radius: 16px;
    border: 1px solid #3a3a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Code sample - the actual code block */
.code-sample {
    background-color: #1e1e1e;
    padding: 0 20px 40px 20px;
}

.code-wrapper {
    position: relative;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #0d0d0d;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    scrollbar-width: thin;
    scrollbar-color: #4a6fa5 #2a2a2a;
}

.code-wrapper::-webkit-scrollbar {
    width: 8px;
}

.code-wrapper::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 0 8px 8px 0;
}

.code-wrapper::-webkit-scrollbar-thumb {
    background-color: #4a6fa5;
    border-radius: 4px;
    border: 2px solid #2a2a2a;
}

.code-wrapper::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #0d0d0d);
    pointer-events: none;
    display: block;
    margin-top: -60px;
}

pre {
    margin: 0;
    padding: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    tab-size: 4;
}

.code-footer {
    margin-top: 20px;
    text-align: center;
}

.view-full {
    display: inline-block;
    color: #4a6fa5;
    text-decoration: none;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid #4a6fa5;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.view-full:hover {
    background-color: #4a6fa5;
    color: white;
    transform: translateY(-1px);
}

.loading, .error {
    padding: 40px;
    text-align: center;
    color: #888;
    font-family: 'JetBrains Mono Light', monospace;
}

.error {
    color: #ff6b6b;
}

/* Features section */
.features-section {
    background-color: #121212;
    padding: 80px 20px;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
}

.features-title {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 32px;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #4a6fa5;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: #4a6fa5;
}

.feature-name {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 12px;
    font-weight: 300;
}

.feature-desc {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-example {
    padding: 16px;
    background-color: #0d0d0d;
    border-radius: 6px;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 13px;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    padding: 40px 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4a6fa5;
}

.copyright {
    font-family: 'JetBrains Mono Light', monospace;
    font-size: 13px;
}

/* Responsive styles */
@media (min-width: 601px) {
    .description {
        padding-left: 20px;
    }
}

@media (max-width: 600px) {
    .description {
        display: block;
        padding: 20px 20px 20px 20px;
        text-indent: 2em;
        width: 100%;
        flex: none;
        min-width: auto;
    }
    
    .coderive-group {
        flex-direction: row;
        align-items: center;
        padding: 20px 0 0 20px;
        width: 100%;
    }
    
    .coderive-logo {
        margin: 0 25px 0 0 !important;
    }
    
    .coderive-text {
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .coderive-container {
        align-items: flex-start;
    }
    
    .file-path {
        max-width: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .code-header {
        margin: 30px 20px 15px 20px;
    }
    
    .code-title {
        font-size: 22px;
    }
    
    .repo-info {
        gap: 10px;
        padding: 15px 0;
    }
    
    .code-sample {
        padding: 0 20px 30px 20px;
    }
}