@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;700;900&display=swap');

:root {
    --slate-primary: #1e293b;
    --slate-secondary: #475569;
    --industrial-gray: #f1f5f9;
}

body { font-family: 'Inter', sans-serif; background-color: var(--industrial-gray); color: #1e293b; }
code, .font-mono { font-family: 'Fira Code', monospace; }

.hero-gradient { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); }

.nav-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 4px solid transparent;
}
.nav-card:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    border-bottom-color: #64748b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.coming-soon-card {
    filter: grayscale(0.8);
    opacity: 0.7;
    cursor: not-allowed;
    transition: all 0.4s ease;
}
.coming-soon-card:hover {
    filter: grayscale(0.3);
    opacity: 0.9;
}

.fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-container { 
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #475569 #0f172a;
}

/* Style dla wygenerowanej treści (oraz podglądu edytora) */
.formatted-content p { margin-bottom: 1em; }

/* Typografia: Wielopoziomowe nagłówki */
.formatted-content h1 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.formatted-content h2 { 
    font-size: 1.5rem; 
    font-weight: 900; 
    margin-top: 1.5em; 
    margin-bottom: 0.5em; 
    text-transform: uppercase; 
    font-style: italic; 
}
.formatted-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.formatted-content ul { list-style-type: disc; margin-left: 2em; margin-bottom: 1em; }
.formatted-content ol { list-style-type: decimal; margin-left: 2em; margin-bottom: 1em; }
.formatted-content s, .formatted-content strike { text-decoration: line-through; }
.formatted-content u { text-decoration: underline; }
.formatted-content b, .formatted-content strong { font-weight: 700; }
.formatted-content i, .formatted-content em { font-style: italic; }

/* Style dla bloków: Tabele */
.formatted-content table.editor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.formatted-content table.editor-table th, 
.formatted-content table.editor-table td {
    border: 1px solid #cbd5e1;
    padding: 0.75rem;
}
.formatted-content table.editor-table th {
    background-color: #f1f5f9;
    font-weight: bold;
    text-align: left;
}

/* Style dla bloków: Kolumny */
.formatted-content .editor-columns {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}
.formatted-content .editor-column {
    flex: 1;
}
/* Wymuszenie kolumn w stosie na małych ekranach */
@media (max-width: 768px) {
    .formatted-content .editor-columns {
        flex-direction: column;
    }
}

/* Style dla hiperłączy tylko w treści artykułu */
#article-content a, .formatted-content a { 
    color: #3b82f6; 
    text-decoration: underline; 
    transition: color 0.2s;
}
#article-content a:hover, .formatted-content a:hover { 
    color: #1d4ed8; 
}

/* Styl pomocniczy tylko dla obszaru edycji - ułatwia trafienie myszką w kolumnę */
#editor-canvas .editor-column {
    outline: 1px dashed #cbd5e1; /* Delikatna linia pomocnicza */
    outline-offset: -1px;
}

/* Styl dla finalnej treści i podglądu - brak obramowań */
.formatted-content .editor-columns {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.formatted-content .editor-column {
    flex: 1;
    border: none; /* Upewniamy się, że nie ma ramek */
    padding: 0;    /* Możesz dostosować padding według uznania */
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .formatted-content .editor-columns {
        flex-direction: column;
    }
}
#bbc{
	color: #3b82f6; 
    text-decoration: underline; 
    transition: color 0.2s;
}
#bbc:hover{
	color: #1d4ed8; 
}