/* TodoBox Styles */

/* Import Caveat Font from Google Fonts CDN - Handwritten Marker Style */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
}

.hero-section .btn-light {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-section h1.display-4 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 3.5rem;
}
/* Logo */
.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Spacing */
.section {
    padding: 60px 0;
}

/* Tech Stack Badges */
.tech-badge {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-badge:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tech-badge strong {
    color: #667eea;
}

/* Code Blocks - Dark Theme */
.code-block {
    background-color: #2d3748;
    border: 1px solid #1a202c;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.code-block-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.copy-button {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: #667eea;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background-color: #764ba2;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.copy-button.copied {
    background-color: #48bb78;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Courier New', Courier, 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-block code br {
    display: block;
    content: "";
    margin: 4px 0;
}

/* Features Section */
.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h5 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Section Headings */
.section h2 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.section h5 {
    color: #4a5568;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 40px 0;
    margin-top: 80px;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

footer p {
    margin-bottom: 10px;
}

footer .text-muted {
    color: #a0aec0 !important;
}

footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .tech-badge {
        margin: 5px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .code-block {
        padding: 15px;
        font-size: 13px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
}

/* Bootstrap Override for Better Spacing */
.container {
    max-width: 1140px;
}

/* Background Light Sections */
.bg-light {
    background-color: #f7fafc !important;
}

/* Floating Table of Contents */
.toc-floating {
    position: fixed;
    left: 20px;
    top: 120px;
    z-index: 1000;
    max-width: 220px;
}

.toc-floating-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.toc-floating-card:hover {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.2);
}

.toc-floating-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.toc-floating-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-floating-list li {
    margin-bottom: 8px;
}

.toc-floating-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-floating-list a:hover,
.toc-floating-list a.active {
    background-color: #f7fafc;
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 16px;
}

/* Hide floating TOC on small screens */
@media (max-width: 1200px) {
    .toc-floating {
        display: none;
    }
}

/* Adjust body padding to account for floating nav */
@media (min-width: 1201px) {
    body {
        padding-left: 0;
    }
}

/* Table of Contents - Old styles removed, keeping for backwards compatibility */
.toc-section {
    padding: 0 0 60px 0;
    margin-top: -20px;
}

.toc-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.toc-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background-color: #f7fafc;
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 20px;
}

/* Scroll margin for anchor links */
section[id],
div[id] {
    scroll-margin-top: 20px;
}

/* Alert styles for deployment section */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
}

.alert-info {
    background-color: #e6f2ff;
    border: 1px solid #b3d9ff;
    color: #004085;
}

/* Screenshot Section */
.screenshot-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.screenshot-card img:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2) !important;
}

.screenshot-card h5 {
    color: #2d3748;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
}

.screenshot-card p {
    color: #718096;
    font-size: 0.9rem;
}
