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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding: 12px 24px;
    background: var(--surface);
}

.nav-btn {
    padding: 12px 24px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Cards */
.card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.card h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.card ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.card ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Data Types Grid */
.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.data-type-card {
    background: var(--background);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.data-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.data-type-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.data-type-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Workflow List */
.workflow-list {
    list-style: none;
    counter-reset: workflow-counter;
    margin-left: 0;
}

.workflow-list li {
    counter-increment: workflow-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.workflow-list li::before {
    content: counter(workflow-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.workflow-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.workflow-list li p {
    margin-bottom: 0;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Links Section */
.links-section {
    margin-bottom: 30px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: var(--background);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: larger;
    font-weight: 550;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.link-card.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.link-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-forecast-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.about-section {
    margin-bottom: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background: var(--surface);
    border-radius: 12px;
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.forecast {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.forecast img {
    flex: 0 0 50%;
    max-width: 50%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

#forecast1 {
    display: flex;
}

.forecast .forecast-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px 12px;
    color: var(--text-primary);
}


/* Responsive Design */
@media (max-width: 768px) {
    .forecast {
        flex-direction: column;
        gap: 12px;
    }

    .forecast img,
    .forecast .forecast-text {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .card {
        padding: 20px;
    }

    .nav {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }

    .code-block {
        padding: 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 40px 20px;
    }

    .card h2 {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .nav,
    .footer {
        display: none;
    }

    .card {
        break-inside: avoid;
    }
}
