/* Homepage Specific Layout & UI Component Styles */

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1rem;
}

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

/* Interactive Terminal Widget styling */
.hero-terminal {
    background: #020306;
    border: 1px solid var(--border-cyan);
    border-radius: 8px;
    box-shadow: 0 15px 40px -15px rgba(0, 229, 255, 0.3);
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    height: 360px;
    overflow: hidden;
    position: relative;
}

.terminal-bar {
    background: #0a0e17;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-light);
}

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

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.terminal-badge {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    opacity: 0.7;
}

.terminal-body {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #a8b2d1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    background: #020306;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 229, 255, 0.05);
}

.terminal-prompt {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
    user-select: none;
    font-weight: 600;
}

#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    caret-color: var(--accent-green);
}

/* Learning Paths Section */
.paths-section {
    padding: 6rem 0;
    background: rgba(4, 5, 8, 0.5);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.path-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.border-left-cyan { border-left: 3px solid var(--accent-cyan); }
.border-left-green { border-left: 3px solid var(--accent-green); }
.border-left-purple { border-left: 3px solid var(--accent-purple); }

.path-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.path-title {
    font-size: 1.35rem;
}

.path-desc {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    flex-grow: 1;
}

.path-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.path-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.path-link i {
    transition: var(--transition-fast);
}

.path-link:hover i {
    transform: translateX(5px);
}

/* Latest Articles Section */
.latest-section {
    padding: 6rem 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header-row .section-header {
    text-align: left;
    margin-bottom: 0;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-title {
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-title a {
    color: #ffffff;
}

.article-title a:hover {
    color: var(--accent-cyan);
}

.article-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.825rem;
}

.article-date {
    color: var(--text-muted);
}

.read-more {
    font-weight: 600;
}

.read-more i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Hacking Sandbox CTA Banner */
.cta-sandbox-section {
    padding: 0 0 6rem 0;
}

.cta-sandbox-card {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 3.5rem;
    border-color: var(--border-green);
    box-shadow: 0 15px 40px -15px rgba(0, 245, 118, 0.15);
}

.cta-sandbox-card::before {
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.cta-sandbox-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px -10px rgba(0, 245, 118, 0.25);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.cta-title {
    font-size: 2.25rem;
    line-height: 1.2;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
}

.cta-visual {
    font-size: 8rem;
    color: var(--accent-green);
    opacity: 0.15;
    justify-self: center;
    filter: drop-shadow(0 0 15px rgba(0, 245, 118, 0.4));
    transition: var(--transition-normal);
}

.cta-sandbox-card:hover .cta-visual {
    opacity: 0.35;
    transform: scale(1.05) rotate(-3deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-description {
        max-width: 100%;
    }
    .paths-grid {
        grid-template-columns: 1fr;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .section-header-row .cyber-btn {
        width: 100%;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .cta-sandbox-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        text-align: center;
    }
    .cta-content {
        align-items: center;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .cta-buttons .cyber-btn {
        width: 100%;
    }
    .cta-visual {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-actions-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-actions-btns .cyber-btn {
        width: 100%;
    }
    .hero-terminal {
        height: 300px;
    }
    .cta-title {
        font-size: 1.75rem;
    }
}
