/* Industrie-Hub Styles - stromfee.club - Light Green Theme */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 50%, #f0fdf4 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.external {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card-chat {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

/* Example Questions */
.example-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.example-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.example-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.message.user .message-content {
    background: var(--primary);
    color: white;
}

.message.assistant .message-content {
    background: var(--bg-input);
}

.message-content ul {
    margin: 0.5rem 0 0 1.25rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.sources {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input-container input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.9375rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-container button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input-container button:hover {
    background: var(--primary-dark);
}

/* Loading dots */
.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Protocol Cards */
.protocol-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.protocol-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.protocol-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.protocol-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.protocol-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.protocol-card:hover .protocol-image img {
    transform: scale(1.05);
}

.protocol-body {
    padding: 1rem;
}

.protocol-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.protocol-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.badge-edge { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-backbone { background: #ecfeff; color: #06b6d4; border: 1px solid #a5f3fc; }
.badge-cloud { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-timeseries { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-analytics { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-protocol { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.badge-messaging { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.badge-api { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.badge-ai { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.badge-eeg { background: #10b981; color: white; }
.badge-westnetz { background: #f59e0b; color: white; }
.badge-neu { background: #ef4444; color: white; font-size: 0.7rem; }

/* Spezialthemen Section - Light Green */
.card-special {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #d1fae5;
}
.card-special h2 {
    color: #059669;
}
.section-subtitle {
    color: #475569;
    margin-bottom: 1.5rem;
}
.protocol-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.protocol-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}
.protocol-image {
    position: relative;
}
.audio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
}

.status-item.connected .status-indicator { background: var(--success); }
.status-item.error .status-indicator { background: var(--error); }
.status-item.not_configured .status-indicator { background: var(--warning); }
.status-item.loading .status-indicator {
    background: var(--secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-type {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.status-detail {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-left: auto;
}

/* Search */
.search-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-container input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text);
}

.search-container button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.result-source {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.result-content {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg-input);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 100%);
    position: relative;
}

.article-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-thumbnail:hover::after {
    opacity: 1;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.article-thumbnail:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.article-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card h2 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--primary);
}

.article-preview {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    flex: 1;
    line-height: 1.5;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.tag-small {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.article-file {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.article-source {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-source.markdown {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
}

.article-source.wordpress {
    background: linear-gradient(135deg, #1e3a5f, #21759b);
    color: white;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Topics Overview */
.topics-overview {
    margin-top: 3rem;
}

.topics-overview h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.topic-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.topic-card ul {
    list-style: none;
}

.topic-card li {
    padding: 0.375rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.topic-card li::before {
    content: "›";
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Article Full */
.article-full {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary);
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.prose h1 { font-size: 2rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--primary); }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin: 0.5rem 0; }
.prose pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}
.prose strong { color: var(--text); }
.prose a { color: var(--primary); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Article Images */
.article-image {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

/* Tags */
.prose strong:has(+ a[href^="#"]) { display: none; }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.article-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-actions {
    display: flex;
    gap: 1rem;
}

/* Import Page */
.import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.import-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.import-header h2 {
    margin: 0;
}

.import-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.import-form {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.import-result {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-height: 60px;
}

.import-result .loading {
    color: var(--text-muted);
}

.import-result .error {
    color: var(--error);
}

.import-result .info {
    color: var(--warning);
}

.result-success pre {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.75rem;
    max-height: 200px;
}

.result-more {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.mcp-info {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.mcp-info ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.mcp-info li {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mcp-status {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mcp-status span {
    color: var(--warning);
}

/* Import Guide */
.import-guide {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.import-guide h2 {
    margin-bottom: 1.5rem;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.guide-step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.guide-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Warning Box */
.warning-box {
    background: #f59e0b20;
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--warning);
}

/* Footer - Light Green Theme */
.footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    color: #475569;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, #059669, transparent);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 1px;
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0;
    transition: all 0.2s;
}

.footer-section a:hover {
    color: #10b981;
    transform: translateX(4px);
}

.footer-section a::before {
    content: '›';
    color: #10b981;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-section a:hover::before {
    opacity: 1;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #64748b;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.footer-brand span {
    background: linear-gradient(90deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-notice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-notice::before {
    content: '✓';
    background: rgba(16, 185, 129, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.footer-bottom p {
    color: #64748b;
}

.footer-bottom a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #10b981;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #64748b;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #10b981;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 640px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-chat {
        grid-column: 1;
        grid-row: auto;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .import-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Slider - Fullscreen Background */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    color: white;
    z-index: 2;
}
.hero-slide-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
}
.hero-slide-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    max-width: 700px;
}
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.6);
}
.hero-dot.active, .hero-dot:hover {
    background: white;
    transform: scale(1.2);
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.hero-nav:hover { background: rgba(255,255,255,0.4); }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .hero-slide-content { padding: 1.5rem; text-align: center; }
    .hero-slide-content h2 { font-size: 1.25rem; }
}
