/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "font_wow";
    src: url(../font/World_of_Water.otf);
}

@font-face {
    font-family: "font_sf";
    src: url(../font/SciFly-Sans.ttf);
}

@font-face {
    font-family: "font_TF4";
    src: url(../font/Terminal_F4.ttf);
}



body {
    background-color: #0d0d0d;
    min-height: 100vh;
    font-family: 'font_TF4';
    color: #b6b6b6;
    line-height: 1.6;
}

h1 {
    font-family: 'font_sf';
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    margin-top: 30px;
    color: #00ff42;
    text-shadow: 0 0 2px rgba(0, 255, 65, 0.6);
    animation: fadeIn 1s ease-in 0.5s both;
}

h2 {
    font-family: 'font_TF4';
    color: #b6b6b6;
    margin-top: 10px;
    font-size: 1.1rem;
}

.h2_smaller {
    font-family: 'font_TF4';
    color: #b6b6b6;
    margin-top: 10px;
    font-size: 0.95rem;
    letter-spacing: -1px;
}

h3 {
    font-family: 'font_sf';
    color: #00ff42;
    margin-top: 10px;
    font-size: 1.1rem;

}

h4 {
    font-family: 'font_TF4';
    color: #b6b6b6;
    margin-top: 2px;
    font-size: 1.1rem;
}


/* Background Assembly Canvas */
#assembly-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Overlay for white flashes */
#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


.blog-header {
    text-align: center;
    margin-bottom: 60px;
}


.blog-header p {
    color: #b3b3b3;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

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

.article-card {
    background-color: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    background-color: rgba(0, 255, 65, 0.02);
}

.article-content-wrapper {
    padding: 30px;
}

.article-card:hover {
    background-color: rgba(0, 255, 65, 0.08);
    border-color: #00ff42;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7affa7;
}

.article-date,
.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'font_sf';
}

.article-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.article-excerpt {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background-color: rgba(0, 255, 65, 0.1);
    color: #00ff42;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.read-more {
    color: #00ff42;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #7affa7;
    font-size: 1.2rem;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #b3b3b3;
    font-size: 1.1rem;
}

/* Article Container (for post.html) */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 40px 60px;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ff42;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(0, 255, 65, 0.1);
    border-color: #00ff42;
    transform: translateX(-5px);
}

/* Article Header */
.article-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content - Markdown Styling */
.article-content {
    color: #b3b3b3;
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #b6b6b6;
    margin-top: 40px;
    margin-bottom: 20px;
}



.article-content p {
    margin-bottom: 20px;
}

.article-content strong {
    color: #b6b6b6;
    font-weight: 900;
}

.article-content em {
    color: #7affa7;
    font-style: italic;
}

.article-content a {
    color: #b6b6b6;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.article-content a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    text-decoration: none;
}

.article-content ul,
.article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid #b6b6b6;
    padding-left: 20px;
    margin: 30px 0;
    color: #7affa7;
    font-style: italic;
    background-color: rgba(0, 255, 65, 0.05);
    padding: 20px;
    border-radius: 4px;
}

.article-content pre {
    background-color: #1e1e1e;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-content :not(pre) > code {
    background-color: rgba(0, 255, 65, 0.1);
    color: #b6b6b6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.article-content hr {
    border: none;
    border-top: 2px solid rgba(0, 255, 65, 0.2);
    margin: 40px 0;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 30px 0;
}

.article-content th,
.article-content td {
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 12px;
    text-align: left;
}

.article-content th {
    background-color: rgba(0, 255, 65, 0.1);
    color: #b6b6b6;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 768px) {

    .blog-container,
    .article-container {
        padding: 120px 20px 40px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-content {
        font-size: 1rem;
    }

    /* IRC Page Responsive */
    .page-title {
        margin: 120px auto 30px !important;
        padding: 0 20px !important;
    }


    .irc-container {
        padding: 20px !important;
    }

    .page-title .description {
        font-size: 1rem !important;
    }
}

/* ==================== IRC PAGE STYLES ==================== */

/* Page Title - en dehors du container */
.page-title {
    text-align: center;
    margin: 140px auto 40px;
    max-width: 900px;
    padding: 0 30px;
}

/* Description IRC */
.page-title .description {
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #b3b3b3;
    margin: 0 auto 20px;
    animation: fadeIn 1s ease-in 1.1s both;
}

/* Container IRC avec transparence */
.irc-container {
    max-width: 900px;
    width: 100%;
    background-color: rgba(0, 255, 66, 0.03);
    border: 1px solid rgba(0, 255, 66, 0.2);
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto 60px;
    transition: all 0.3s ease;
}

.irc-container:hover {
    background-color: rgba(0, 255, 66, 0.08);
    border-color: #00ff42;
    box-shadow: 0 10px 30px rgba(0, 255, 66, 0.3);
}

/* Network Info */
.network-info {
    color: #7affa7;
    font-size: 0.9em;
}

/* Content IRC */
.irc-content {
    margin-top: 20px;
}

/* Section IRC */
.irc-section {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 3px solid #00ff42;
    background-color: rgba(0, 255, 66, 0.02);
}

.irc-section-title {
    font-size: 1.3em;
    color: #00ff42;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'font_sf';
}

.irc-info-line {
    margin: 8px 0;
    padding-left: 15px;
}

.irc-highlight {
    color: #00ff42;
    font-weight: bold;
}

.irc-emoji {
    color: #00ff42;
}

/* Links IRC */
.irc-container a {
    color: #00ff42;
    text-decoration: none;
    border-bottom: 1px dotted #00ff42;
    transition: all 0.3s ease;
}

.irc-container a:hover {
    color: #00ff42;
    text-shadow: 0 0 10px rgba(0, 255, 66, 0.8);
    text-decoration: none;
}

/* Connect Box */
.irc-connect-box {
    background-color: rgba(0, 255, 66, 0.05);
    border: 1px solid rgba(0, 255, 66, 0.3);
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

/* Footer IRC */
.irc-footer {
    margin-top: 30px;
    text-align: center;
    color: #7affa7;
    font-size: 0.9em;
    border-top: 2px solid rgba(0, 255, 66, 0.2);
    padding-top: 15px;
}

/* Animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
