/*
Theme Name: jis.to Core Theme
Theme URI: https://jis.to
Description: High-performance, fully responsive theme with modern UI styling.
Version: 3.1.0
Author: Web Architecture Team
Text Domain: jis-to
*/

:root {
    --primary-color: #0f172a; 
    --secondary-color: #0ea5e9; 
    --accent-gradient: linear-gradient(135deg, #0ea5e9, #3b82f6);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --card-gradient: linear-gradient(135deg, #1e293b, #0f172a);
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --border-color: #cbd5e1;
    --price-color: #34d399; 
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.site-container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 4px solid var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.header-grid { display: flex; justify-content: space-between; align-items: center; }
.site-logo img { max-height: 50px; width: auto; }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--primary-color); cursor: pointer; }
.site-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-navigation a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s ease; }
.site-navigation a:hover { color: var(--secondary-color); }

/* Main Layout */
.main-content-area { display: block; width: 100%; margin: 40px auto; }
.content-primary { width: 100%; display: block; }
.widget-box { background: #ffffff; padding: 30px; border-radius: 16px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); margin-bottom: 30px; }

/* Footer Grid */
.site-footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

/* Animations & Mobile */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .site-container { padding: 0 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .site-navigation { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; padding: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
    .site-navigation.toggled { display: block; }
    .site-navigation ul { flex-direction: column; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- HEADER MENU WRAP FIX --- */
.site-navigation li {
    white-space: nowrap; 
}
.site-navigation ul {
    align-items: center; 
}

/* --- FOOTER MENU & COPYRIGHT STYLING --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-menu {
    margin-bottom: 15px;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-menu a:hover {
    color: #ffffff;
}
.footer-copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* --- MOBILE MEDIA FAIL-SAFE --- */
/* Ensure images and embeds inside articles never break the mobile screen width */
.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content figure {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- GUTENBERG BLOCK ALIGNMENT & FORMATTING --- */

/* Basic Alignments */
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.alignright {
    float: right;
    margin-left: 25px;
    margin-bottom: 25px;
}
.alignleft {
    float: left;
    margin-right: 25px;
    margin-bottom: 25px;
}

/* Clearfix for floated blocks */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Wide and Full-Width Block Support */
.entry-content > .alignwide {
    max-width: 100%;
}

/* This math forces an element to break out of the 1200px container and touch the screen edges */
.entry-content > .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* Standard block spacing */
.entry-content p, 
.entry-content ul, 
.entry-content ol, 
.entry-content blockquote {
    margin-bottom: 1.5rem;
}