/*
Theme Name: Code Execute - Design Lab
Theme URI: https://codeexecute.com/
Author: Ankit Agrawal
Author URI: https://codeexecute.com/
Description: Personal design playground for Code Execute.
Template: cetheme
Version: 1.0.0
*/

/* Add your custom CSS below this line */


/* ====================================================
   Global Typography & Reset
   ==================================================== */
body {
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
    color: #333333;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo a.custom-logo-link {
    font-size: 24px;
    font-weight: 800;
    color: #333333;
    text-decoration: none;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.menu-wrapper {
    display: flex;
}

.site-navigation .primary-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    align-items: center;
}

.site-navigation .primary-menu-list li a {
    ext-decoration: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    padding-bottom: 0.25rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    padding-top: 0.25rem;
}

.site-navigation .primary-menu-list li.current-menu-item a,
.site-navigation .primary-menu-list li a:hover {
    color: #00b377;
    border-bottom: 2px solid #00b377;
}

.header-right-widget {
    display: flex;
    align-items: center;
}

.header-widget-button a,
.btn-primary {
    background-color: #00b377;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    gap: 0.75rem;
}

.header-widget-button a:hover,
.btn-primary:hover {
    background-color: #009666;
}

.hero-section {
    text-align: center;
    background-color: #ffffff;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
	font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0;
}

.text-main {
    color: #0f172a;
}

.text-highlight {
    color: #9ca3af;
}

span.text-highlight {
    animation: blink 1s step-end infinite;
    border-right: 4px solid #10b981;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #10b981; }
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 5px;
    text-transform: uppercase;
    line-height: 1.8;
    max-width: 42rem;
    margin: auto;
}

.comment-slashes {
    color: #cbd5e1;
    letter-spacing: 2px;
}
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.entry-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
    text-align: center;
    letter-spacing: 1px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}










/* ====================================================
   Code Card Showcase
   ==================================================== */
.code-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.card-sidebar {
    display: flex;
    flex-direction: column;
    padding: 36px 0;
    width: 60px;
    background-color: #f8fafc;
    text-align: center;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.card-sidebar span {
    display: block;
    height: 36px;
    line-height: 36px;
}

.card-body {
    padding: 36px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.code-row {
    line-height: 1.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
}
.code-row.title-row , .code-row.excerpt-row , .code-row.tax-row, .code-row.author-meta-row, .card-body .entry-content{
    padding-left: 2rem;
}

.spacer-row {
    height: 36px;
}

/* Meta & Dots */
.meta-row {
    gap: 15px;
    margin-bottom: 2.5rem;
}

.mac-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.dot.red { background-color: #fca5a5; }
.dot.yellow { background-color: #fde047; }
.dot.green { background-color: #86efac; }

.file-path {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Syntax Highlighting */
.syntax-bracket { color: #10b981; }
.syntax-comment { color: #94a3b8; margin-left: 10px; }

/* Title */
.title-row {
    display: block;
}

.title-row a {
    color: #0f172a;
    font-size: 1.875rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 2.25rem;
    display: inline;
}

.code-row.title-row {
    margin-top: calc(1.5rem * calc(1 - 0));
}

.code-row.excerpt-row {
    margin-top: calc(1.5rem * calc(1 - 0));
}

.code-row:last-child {
    margin-top: calc(1.5rem * calc(1 - 0));
}

.title-row a:hover { color: #10b981; }

/* Excerpt */
.excerpt-row {
    color: #64748b;
    display: block;
}

/* Taxonomy */
.tax-row {
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.5px;
    margin-top: calc(1.5rem * calc(1 - 0));
}

.tax-label { color: #cbd5e1; margin-right: 2px; }
.tax-val-stack { color: #64748b; margin-right: 15px; }
.tax-val-level { color: #10b981; margin-right: 15px; }
.tax-val-status { color: #3b82f6; margin-right: 15px; }

/* ====================================================
   Pagination (Pill Design)
   ==================================================== */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    font-family: 'JetBrains Mono', monospace;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: #ffffff;
    min-width: 40px;
}

.custom-pagination .page-numbers:hover {
    border-color: #10b981;
    color: #10b981;
}

.custom-pagination .page-numbers.current {
    border-color: #10b981;
    color: #10b981;
    background-color: #ecfdf5;
}

.custom-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    padding: 8px 5px;
    min-width: auto;
    color: #cbd5e1;
}

@media screen and (max-width: 768px) {
    .code-card { flex-direction: column; }
    .card-sidebar { display: none; }
    .card-body { padding: 25px; }
    .title-row a { font-size: 20px; }
    .custom-pagination { flex-wrap: wrap; }
}


.code-row a.execute-btn {
    color: #63c6ae;
	font-size: 12px;
}
    
.code-row a.execute-btn:hover {
    color: #00b377;
}



/* Color the main text using a 40/60 gradient split */
.hero-title .text-main {
    background: linear-gradient(to right, #686868 40%, #63c6ae 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

/* Color the highlight text */
.hero-title .text-highlight {
    color: #79ceb9;
}


.footer-widget {
    background: transparent;
    padding: 20px 0px;
}
.card-body {
    word-wrap: break-word;
}








@media screen and (max-width: 991px) {
    .hero-title {
        font-size: 48px;
    }
    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .menu-icon {
        display: block;
    }
    
    .menu-wrapper {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .menu-toggle:checked ~ .menu-wrapper {
        display: flex;
    }

    .site-navigation .primary-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .site-navigation .primary-menu-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .site-navigation .primary-menu-list li a {
        display: block;
        padding: 15px 0;
    }

    .header-right-widget {
        order: 2;
    }

    .site-navigation {
        order: 3;
    }
}

@media screen and (max-width: 600px) {
    .hero-section {
        padding: 0px 20px 40px;
    }
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .site-container {
        padding: 0 20px;
    }
    
    .site-main {
        padding: 40px 0;
    }
}

@media screen and (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    .header-widget-button a, 
    .btn-primary {
        padding: 10px 15px;
        font-size: 11px;
    }
}