/*
Theme Name:  CODARAB Empty Template
Theme URI:   https://codarab.com
Author:      CODARAB DEV
Author URI:  https://codarab.com
Description: A clean, minimalist empty WordPress theme with full-width layout. Features a responsive header and footer that wrap content height exactly — no extra space, no fuss. Built for developers who want a blank canvas to start from zero.
Version:     1.5.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codarab-empty-template
Tags:        blank, minimal, full-width, developer, empty, starter
*/

/* =========================================================
   CODARAB Empty Template — Global Reset & Base
   Developed by CODARAB DEV | codarab.com
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* =========================================================
   Layout — Page Wrapper
   ========================================================= */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* =========================================================
   Header — Full Width, Height Responsive to Content
   ========================================================= */

#masthead {
    width: 100%;
    background-color: #0a0a0a;
    color: #ffffff;
}

#masthead .site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    width: 100%;
}

#masthead .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#masthead .site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#masthead .site-title a:hover {
    opacity: 0.75;
}

#masthead .site-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

/* Primary Navigation */
#masthead nav#site-navigation {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#masthead nav#site-navigation ul {
    display: flex;
    list-style: none;
    padding: 0 2rem;
    gap: 0.25rem;
    flex-wrap: wrap;
}

#masthead nav#site-navigation ul li a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

#masthead nav#site-navigation ul li a:hover,
#masthead nav#site-navigation ul li.current-menu-item > a {
    color: #ffffff;
}

/* =========================================================
   Main Content — Grows to fill space between header & footer
   ========================================================= */

#content {
    flex: 1 0 auto;
    width: 100%;
}

#primary {
    width: 100%;
}

/* =========================================================
   Footer — Full Width, Height Responsive to Content
   ========================================================= */

#colophon {
    width: 100%;
    background-color: #0a0a0a;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

#colophon .site-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#colophon .site-info a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

#colophon .site-info a:hover {
    color: #ffffff;
}

#colophon .footer-widgets {
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* =========================================================
   WordPress Core Classes (keep for compatibility)
   ========================================================= */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* =========================================================
   Responsive — Mobile breakpoints
   ========================================================= */

@media (max-width: 768px) {
    #masthead .site-branding {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    #masthead nav#site-navigation ul {
        padding: 0 1rem;
    }

    #colophon .site-info {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    #colophon .footer-widgets {
        padding: 1.5rem 1rem;
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Empty Page Notice
   ========================================================= */

.codarab-empty-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    padding: 3rem 2rem;
}

.codarab-empty-page span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border: 1.5px dashed #cccccc;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #aaaaaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    user-select: none;
}

.codarab-empty-page span::before {
    content: '○';
    font-size: 0.7rem;
    opacity: 0.6;
}

/* =========================================================
   404 / Not Found Badge
   ========================================================= */

.codarab-404-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.6rem;
    border: 1.5px dashed #cccccc;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #aaaaaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    user-select: none;
}

.codarab-404-code {
    font-weight: 700;
    color: #c0392b;
    font-size: 0.95rem;
}

.codarab-404-sep {
    opacity: 0.35;
}

.codarab-404-text {
    color: #999999;
}
