/* ========================================
   KOODI ARTICLE STYLES
   Мінімальні стилі для статей
   Використовує змінні з main.css
   ======================================== */

/* ========================================
   ARTICLE LAYOUT
======================================== */
.article-hero {
    padding: 40px 40px 60px;
    text-align: center;
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-mascot {
    width: 100px;
    height: 100px;
    background: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
    border: 3px solid var(--black);
}

.article-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
}

.article-hero p {
    font-size: 18px;
    color: var(--darkgray);
    margin-bottom: 15px;
}

.article-tag {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.article-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ========================================
   ARTICLE SECTIONS
======================================== */
.article-block {
    margin-bottom: 50px;
}

.article-block-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-block-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.article-block-icon.bg-pink { background: var(--pink); }
.article-block-icon.bg-orange { background: var(--orange); }
.article-block-icon.bg-lime { background: var(--lime); }
.article-block-icon.bg-blue { background: var(--blue); }

.article-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
}

.article-block p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ========================================
   TIP BOX
======================================== */
.tip-box {
    background: var(--white);
    border-left: 4px solid var(--lime);
    border-radius: 0 15px 15px 0;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-box.border-pink { border-left-color: var(--pink); }
.tip-box.border-orange { border-left-color: var(--orange); }
.tip-box.border-blue { border-left-color: var(--blue); }

.tip-box-icon {
    font-size: 35px;
    flex-shrink: 0;
}

.tip-box-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tip-box-text {
    font-size: 15px;
    color: var(--darkgray);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   CODE WINDOW
======================================== */
.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    border: 2px solid var(--black);
}

.code-window-bar {
    background: #323233;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-window-dots {
    display: flex;
    gap: 6px;
}

.code-window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window-dot.red { background: #ff5f57; }
.code-window-dot.yellow { background: #febc2e; }
.code-window-dot.green { background: #28c840; }

.code-window-name {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.code-window-main {
    display: flex;
    min-height: 250px;
}

.code-activity {
    width: 45px;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
}

.code-activity-btn {
    width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
    border-left: 2px solid transparent;
}

.code-activity-btn.active {
    color: #fff;
    border-left-color: #fff;
}

.code-files {
    width: 180px;
    background: #252526;
    padding: 8px 0;
    border-right: 1px solid #333;
}

.code-files-title {
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-family: 'JetBrains Mono', monospace;
}

.code-file {
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
}

.code-file:hover {
    background: rgba(255,255,255,0.05);
}

.code-file.indent {
    padding-left: 25px;
}

.code-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-tab {
    background: #252526;
    padding: 8px 15px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #333;
    font-family: 'JetBrains Mono', monospace;
}

.code-tab.active {
    background: #1e1e1e;
    color: #fff;
}

.code-content {
    flex: 1;
    display: flex;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.code-lines {
    padding: 12px 8px;
    text-align: right;
    color: #555;
    background: #1e1e1e;
    border-right: 1px solid #333;
    min-width: 40px;
    user-select: none;
}

.code-text {
    flex: 1;
    padding: 12px;
    color: #d4d4d4;
    overflow-x: auto;
}

.code-text pre {
    margin: 0;
}

.c-keyword { color: #c586c0; }
.c-string { color: #ce9178; }
.c-func { color: #dcdcaa; }
.c-comment { color: #6a9955; font-style: italic; }
.c-var { color: #9cdcfe; }

/* ========================================
   TERMINAL
======================================== */
.terminal-box {
    background: #0c0c0c;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    border: 2px solid var(--black);
}

.terminal-box-bar {
    background: #323233;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-box-name {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-box-content {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    min-height: 100px;
}

.terminal-row {
    margin-bottom: 6px;
}

.terminal-prompt {
    color: #4ec9b0;
    margin-right: 8px;
}

.terminal-cmd {
    color: #fff;
}

.terminal-out {
    color: #888;
}

.terminal-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #4ec9b0;
    animation: blink-cursor 1s infinite;
    vertical-align: middle;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   KEYBOARD SHORTCUTS
======================================== */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.key-item {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.key-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.key-action {
    font-size: 15px;
    font-weight: 500;
}

.key-combo {
    display: flex;
    gap: 4px;
}

.kbd {
    background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a;
}

/* ========================================
   CARDS
======================================== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--black);
    transition: transform 0.2s;
}

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

.info-card-emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--darkgray);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   STEPS
======================================== */
.steps-list {
    margin: 20px 0;
}

.step-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.step-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 55px;
    bottom: -25px;
    width: 2px;
    background: linear-gradient(180deg, var(--lime) 0%, transparent 100%);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid var(--black);
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-info p {
    font-size: 15px;
    color: var(--darkgray);
    margin: 0;
}

/* ========================================
   DOWNLOAD BOX
======================================== */
.download-box {
    background: var(--blue);
    border-radius: 20px;
    padding: 35px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid var(--black);
}

.download-box h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
}

.download-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--lime);
    color: var(--black);
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid var(--black);
    transition: transform 0.2s;
}

.download-box-btn:hover {
    transform: translateY(-3px);
}

.download-box-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.download-box-option {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.download-box-option:hover {
    background: rgba(255,255,255,0.25);
}

/* ========================================
   ARTICLE END
======================================== */
.article-end {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    border: 2px solid var(--black);
}

.article-end h3 {
    font-size: 28px;
    margin: 20px 0 10px;
}

.article-end p {
    font-size: 16px;
    color: var(--darkgray);
    margin-bottom: 8px;
}

.article-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink);
    color: var(--black);
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid var(--black);
    margin-top: 20px;
    transition: transform 0.2s;
}

.article-end-btn:hover {
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 28px;
    }
    
    .article-block-title {
        font-size: 24px;
    }
    
    .code-window-main {
        flex-direction: column;
    }
    
    .code-activity {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .code-files {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .keys-grid {
        grid-template-columns: 1fr;
    }
    
    .key-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .tip-box {
        flex-direction: column;
        text-align: center;
    }
    
    .step-row:not(:last-child)::after {
        display: none;
    }
}

/* =========================================================================
   DROPDOWN NAVIGATION
   ========================================================================= */
.main-menu {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    align-items: center;
}
.nav-dropdown {
    position: relative;
}
.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-trigger i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}
/* Dropdown контент - БІЛЬШИЙ */
.dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 340px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}
/* Стрілочка зверху */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}
.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Елементи dropdown - БІЛЬШІ */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: var(--gray-100, #f5f5f5);
}
.dropdown-item i {
    font-size: 26px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gray-100, #f5f5f5);
    color: var(--black);
    transition: all 0.2s ease;
}
/* Кольори для іконок при hover */
.dropdown-item:hover i {
    background: var(--lime);
    color: var(--black);
}
.dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 18px;
}
.dropdown-desc {
    display: block;
    font-size: 14px;
    color: var(--gray-500, #6c757d);
}
/* Header actions group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Точка-розділювач */
.nav-dot {
    color: var(--gray-400, #adb5bd);
    font-size: 10px;
    user-select: none;
}

/* =========================================================================
   RESPONSIVE - ховаємо dropdown на мобільних
   ========================================================================= */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-content {
        display: none;
    }

    .dropdown-trigger i {
        display: none;
    }

    .nav-dot {
        display: none;
    }
}
