/*
Theme Name: IronWall Terminal
Theme URI: https://ironwall.shop
Author: IronWall Systems
Description: A High-Security Terminal Theme for WooCommerce
Version: 1.0
Text Domain: ironwall
*/

/* --- 1. FONTS & BASICS --- */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --terminal-bg: #050505;
    --terminal-green: #00ff00;
    --terminal-dim: #004400;
    --terminal-alert: #ff0000;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--terminal-bg);
    color: var(--terminal-green);
    font-family: 'VT323', monospace;
    font-size: 18px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    overflow-x: hidden;
}

a { color: var(--terminal-green); text-decoration: none; border-bottom: 1px dotted var(--terminal-green); }
a:hover { background-color: var(--terminal-green); color: var(--terminal-bg); }

/* --- 2. ASCII HEADER & LAYOUT --- */
.terminal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

pre.ascii-art {
    font-size: 12px;
    line-height: 10px;
    white-space: pre-wrap;
    overflow: hidden;
    color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
    margin-bottom: 20px;
}

.system-status-bar {
    border-top: 1px dashed var(--terminal-green);
    border-bottom: 1px dashed var(--terminal-green);
    padding: 10px 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #001100;
}

.status-item { margin-right: 15px; }

/* --- 3. WOOCOMMERCE OVERRIDES --- */
/* Product Grid */
ul.products li.product {
    background-color: #000 !important;
    border: 1px solid var(--terminal-green) !important;
    padding: 15px !important;
    transition: 0.2s;
}
ul.products li.product:hover {
    box-shadow: 0 0 10px var(--terminal-green);
    border: 1px solid #fff !important;
}

/* Typography */
h1, h2, h3, .woocommerce-loop-product__title {
    color: var(--terminal-green) !important;
    font-family: 'VT323', monospace !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
button, .button, .added_to_cart, input[type="submit"] {
    background-color: #000 !important;
    color: var(--terminal-green) !important;
    border: 2px solid var(--terminal-green) !important;
    font-family: 'VT323', monospace !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    font-size: 1.2rem !important;
    cursor: pointer;
}
button:hover, .button:hover, input[type="submit"]:hover {
    background-color: var(--terminal-green) !important;
    color: #000 !important;
}

/* Inputs */
input, textarea, select {
    background: #000 !important;
    border: 1px solid var(--terminal-dim) !important;
    color: var(--terminal-green) !important;
    font-family: 'VT323', monospace !important;
    padding: 10px;
}
input:focus {
    border: 1px solid var(--terminal-green) !important;
    outline: none;
}

/* Prices */
.price { color: #fff !important; font-size: 1.3rem !important; }

/* Messages */
.woocommerce-message, .woocommerce-info {
    border-top: 3px solid var(--terminal-green) !important;
    background-color: #001100 !important;
    color: var(--terminal-green) !important;
}

/* --- 4. EFFECTS --- */
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* CRT Scanline Effect Overlay */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
}
/* --- MEDIA QUERY FOR MOBILE DEVICES (max-width: 600px) --- */
@media screen and (max-width: 600px) {

    /* 1. تنظیم سایز فونت برای بنر (برای جا شدن بهتر) */
    pre.ascii-art {
        font-size: 9px; /* کاهش جزئی از 10px به 9px برای جا شدن در اکثر موبایل‌ها */
        line-height: 9px;
        white-space: pre; 
        overflow-x: auto; 
        width: 100%; 
    }
    
    /* 2. تنظیم فونت‌های عمومی (حفظ سایز بزرگ) */
    body, p, li {
        font-size: 18px !important; 
    }

    /* 3. حذف کامل پدینگ کناری برای حداکثر فضا */
    .terminal-container {
        padding: 10px 5px !important; /* پدینگ کناری به 5 پیکسل کاهش یافت تا فضای بیشتری آزاد شود */
    }

    /* 4. تنظیم نوار وضعیت سیستم برای نمایش عمودی */
    .system-status-bar {
        flex-direction: column;
        align-items: flex-start; 
        padding: 10px;
    }

    .status-item {
        margin-bottom: 5px; 
    }
    
    /* 5. حذف سایه برای خوانایی بهتر در موبایل */
    pre.ascii-art, h1, h2 {
        text-shadow: none;
    }
}
