/*
 Theme Name:   Kupatrix 2026
 Theme URI:    https://www.kupatrix.com
 Description:  Customized Catch Box Child Theme (2026 Modernized)
 Author:       Me!
 Author URI:   https://www.kupatrix.com
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Template:     catch-box
 Version:      1.0.0
 Text Domain:  kupatrix-2026
*/

/* ==========================================================
   PART 1: Dark Color Scheme (Base Dark Foundation)
   ========================================================== */

body {
	color: #bbb;
	background-color: #1d1d1d;
}

#page {
	background: #111;
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
}

hr {
	background-color: #333;
}

blockquote cite {
	color: #999;
}

pre {
	background: #0b0b0b;
}

code, kbd {
	font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr, acronym, dfn {
	border-bottom: 1px dotted #999;
}

ins {
	background: #00063f;
}

input[type=text],
.post-password-required input[type=password],
textarea {
	border: 1px solid #222;
}

input#s {
	background-color: #333;
}

input#s:focus {
	color: #888;
}

#branding {
	background-color: #222;
	border-color: #333;
}

#site-title a {
	color: #eee;
}

#site-description {
	color: #858585;
}

#branding #s, 
#branding #s:focus {
	background-color: #333;
}

#branding #s:focus {
	color: #888;
}

#access {
	background: #333;
	background: linear-gradient(#383838, #272727);
	border-bottom: 1px solid #222;
}

#main {
	background-color: #222;
}

#slider { 
	background-color: #111111;
    border-color: #333333;
}

.page-title {
	color: #ccc;
}

.page-header,
.hentry,
.no-results,
.widget {
	background-color: #111;
	border-color: #333;
}

.entry-title,
.entry-title a {
	color: #ddd;
}

.entry-meta {
	color: #999;
}

.entry-content h1,
.entry-content h2,
.comment-content h1,
.comment-content h2 {
	color: #fff;
}

.entry-content table,
.comment-content table {
	border-color: #222;
}

.entry-content th,
.comment-content th {
	color: #999;
}

.entry-content td,
.comment-content td {
	border-color: #222;
}

.page-link a {
	background: #242424;
	color: #bbb;
}

.page-link a:hover {
	background: #999;
	color: #000;
}

.entry-meta .edit-link a {
	background: #242424;
	color: #bbb;
}

.entry-meta .edit-link a:hover {
	background: #999;
	color: #000;
}

.wp-caption {
	background: #2c2c2c;
}

.wp-caption .wp-caption-text {
	color: #999;
}

.wp-caption .wp-caption-text:before {
	color: #999;
}

img[class*="wp-image-"],
#content .gallery .gallery-icon img {
	border-color: #2c2c2c;
}

.wp-caption img {
	border-color: #2c2c2c;
}

.post-password-required input[type=password] {
	background: #ddd;
}

.post-password-required input[type=password]:focus {
	background: #fff;
}

#author-info {
	background-color: #060606;
    border-color: #333333;
}

#author-avatar img {
	background: #000;
	box-shadow: 0 1px 2px #444;
}

#author-description h2 {
	color: #fff;
}

.entry-header .comments-link a {
	background-color: #282828;
	border-color: #222;
	color: #888;
}

.singular .entry-title {
	color: #fff;
}

.format-status img.avatar {
	box-shadow: 0 1px 2px #333;
}

.format-quote blockquote {
	color: #aaa;
}

.indexed.format-image .wp-caption {
	background: #242424;
}

.indexed.format-image .entry-meta .edit-link a {
	color: #ddd;
}

.indexed.format-image .entry-meta .edit-link a:hover {
	color: #fff;
}

.error404 #main #searchform {
	background: #060606;
	border-color: #222;
}

h1.showcase-heading {
	color: #ccc;
}

article.intro {
	background: #060606;
}

article.intro .entry-content {
	color: #eee;
}

article.intro .edit-link a {
	background: #555;
	color: #000;
}

article.intro .edit-link a:hover {
	background: #888;
}

section.featured-post .hentry {
	color: #999;
}

section.featured-post .attachment-small-feature {
	border-color: #444;
}

section.featured-post .attachment-small-feature:hover {
	border-color: #777;
}

article.feature-image.small .entry-summary {
	color: #aaa;
}

article.feature-image.small .entry-summary p a {
	background: #ddd;
	color: #111;
}

article.feature-image.small .entry-summary p a:hover {
	color: #40220c;
}

article.feature-image.large .entry-title a {
	background: #ddd;
	background: rgba(0,0,0,0.8);
	color: #fff;
}

section.feature-image.large:hover .entry-title a {
	background: #111;
	background: rgba(255,255,255,0.8);
	color: #000;
}

section.feature-image.large img {
	border-bottom: 1px solid #222;
}

.featured-posts {
	border-color: #222;
}

.featured-posts section.featured-post {
	background: #000;
}

.feature-slider a {
	background: #c3c3c3;
	background: rgba(60,60,60,0.9);
	box-shadow: inset 1px 1px 5px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.5);
}

.feature-slider a.active {
	background: #000;
	background: rgba(255,255,255,0.8);
	box-shadow: inset 1px 1px 5px rgba(0,0,0,0.4), inset 0 0 2px rgba(255,255,255,0.8);
}

section.recent-posts .other-recent-posts {
	border-color: #222;
}

section.recent-posts .other-recent-posts .entry-title {
	border-color: #222;
}

section.recent-posts .other-recent-posts a[rel="bookmark"] {
	color: #ccc;
}

section.recent-posts .other-recent-posts .comments-link a,
section.recent-posts .other-recent-posts .comments-link > span {
	border-color: #959595;
	color: #bbb;
}

section.recent-posts .other-recent-posts .comments-link > span {
	border-color: #444;
	color: #777;
}

.image-attachment div.attachment {
	background: #060606;
	border-color: #222;
}

.image-attachment div.attachment a img {
	border-color: #060606;
}

.widget-title,
.widget-title a {
	color: #ddd;
	border-color: #333;
}

.widget ul li {
	color: #888;
}

.widget_search #searchsubmit {
	background: #222;
	border-color: #333;
	box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.09);
	color: #777;
}

.widget_search #searchsubmit:active {
	box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);
	color: #40220c;
}

.widget_calendar #wp-calendar {
	color: #aaa;
}

.widget_calendar #wp-calendar th,
.widget_calendar #wp-calendar tfoot td {
	background: #0b0b0b;
	border-color: #333;
}

#comments-title {
	color: #bbb;
}

.nocomments {
	color: #555;
}

.commentlist > li.comment {
	background: #090909;
	border-color: #222;
}

.commentlist .children li.comment {
	background: #000;
	border-color: #222;
}

.comment-meta {
	color: #999;
}

.commentlist .avatar {
	box-shadow: 0 1px 2px #222;
}

a.comment-reply-link {
	background: #242424;
	color: #bbb;
}

li.bypostauthor a.comment-reply-link {
	background: #111;
}

a.comment-reply-link:hover {
	background: #999;
	color: #000;
}

.commentlist > li.bypostauthor,
.commentlist .children > li.bypostauthor {
	background: #222;
	border-color: #2c2c2c;
}

.commentlist > li.bypostauthor .comment-meta {
	color: #a8a8a8;
}

#respond {
	background: #333;
	border-color: #2c2c2c;
}

#respond input[type="text"],
#respond textarea {
	background: #000;
	border: 4px solid #111;
	box-shadow: inset 0 1px 3px rgba(51,51,51,0.95);
	color: #bbb;
}

#respond .comment-form-author label,
#respond .comment-form-email label,
#respond .comment-form-url label,
#respond .comment-form-comment label {
	background: #111;
	box-shadow: 1px 1px 2px rgba(51,51,51,0.8);
	color: #aaa;
}

#respond .comment-form-author .required,
#respond .comment-form-email .required {
	color: #42caff;
}

#respond input#submit {
	background: #ddd;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
	color: #111;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

#respond input#submit:active {
	color: #40220c;
}

#colophon {
	border-color: #333;
}

#supplementary,
#site-generator {
	background-color: #222;
	border-color: #333;
}


/* ==========================================================
   PART 2: Kupatrix Customizations & Overrides
   ========================================================== */

body {
    margin: 0;
    background: #061e33;
    background: linear-gradient(#092d4d, #02080d) repeat fixed 0 0 rgba(0, 0, 0, 0);
}

#page {
    border: 1px solid #000;
    border-width: 2px 1px 1px 1px;
    box-shadow: 0 0 50px 10px #08f;
    color: #fff;
    font: 16px/1.5 Verdana, Geneva, 'DejaVu Sans', sans-serif;
    text-shadow: 1px 1px #000;
}

/* Updated HTTP to HTTPS for Cloudflare compliance */
#branding { 
background: #061e33 no-repeat 50% 100%;
    background-position: top; 
}
#branding img {
    height: 60px !important;
    width: 218px !important;
}

#header-content {
    height: 250px;
    box-sizing: border-box;
    position: relative;
}

h1#site-title {
    position: absolute;
    bottom: 15px;
    left: -10px;
    width: 218px;
    height: 60px;
}

h1#site-title a {
    width: 218px;
    height: 60px;
    display: block;
    background: transparent url(https://www.kupatrix.com/i/kupatrix-logo.png) no-repeat;
}

h1#site-title a:hover {
    width: 218px;
    height: 60px;
    background: transparent url(https://www.kupatrix.com/i/kupatrix-logo.png) no-repeat 0px -60px;
}

#site-description {
    display: none;
}

#branding #searchform { 
    display: none; 
}

a,
.widget a,
.entry-header .comments-link a {
    color: #f1f1f1;
    text-decoration: underline;
}

a:hover,
.widget a:hover,
.entry-header .comments-link a:hover {
    color: #0f0;
    text-decoration: none;
}

.entry-title a:hover { 
    color: #08f; 
}

.entry-header .comments-link a,
.entry-header .comments-link a:hover { 
    background: none; 
}

#colophon #access-footer {
    border-top: 1px solid #394c73;
    border-bottom: 1px solid #131926;
    background: linear-gradient(#192c54, #0b1426) repeat scroll 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 1px #000;
}

#colophon #access-footer ul.menu li { 
    border: none;  
}

#colophon #access-footer ul.menu a {
    font-size: 12px;
    font-weight: bold;
    line-height: 2em;
    text-shadow: 1px 1px 0px #000;
    border-radius: 15px;
}

#colophon #access-footer ul.menu a:hover {
    background: #000;
    color: #fff;
    box-shadow: inset 0px 0px 0px 1px #192c54;
    border-radius: 12px;
}

/* ==========================================================
   Desktop-Only Menu Customizations (960px and up)
   ========================================================== */
@media screen and (min-width: 960px) {
    /* Put your custom menu gradients, borders, 
       or desktop-specific widths right in here! */
       
       #branding #access,
#branding ul.menu ul {
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #4f4f4f;
    background: linear-gradient(#7a7a7a, #333) repeat scroll 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 1px #000;
}

#branding #access ul.menu li {
    border-width: 0;
    font-size: 16px;
}

#branding #access ul.menu a {
    font-size: 14px;
    font-weight: bold;
    line-height: 2em;
    text-shadow: 1px 1px 0px #000;
}

#branding #access ul.menu > a:hover,
#branding ul.menu li:hover > a,
#branding ul.menu a:focus {
    background: #08f;
    color: #fff;
    box-shadow: inset 0px 0px 10px 2px #000;
    border-radius: 0 12px 0 12px;
}

#branding #access ul.menu ul.sub-menu {
    top: 24px;
    left: 10px;
    padding: 0 1px;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #4f4f4f;
    background: linear-gradient(#7a7a7a, #333) repeat scroll 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 10px #000;
    border-radius: 0 10px;
    display: none; /* Safely hidden on desktop until hovered */
}
#branding #access ul.menu li:hover > ul.sub-menu {
        display: block;
    }

#branding #access ul.menu ul.sub-menu a {
    padding: 0 0 0 8px;
    color: #fff;
    border-color: #000;
    border-style: solid;
    background: none;
    box-shadow: none;
    border-radius: 0;
    width: 180px;
    font-size: 12px;
}

#branding #access ul.menu ul.sub-menu a:hover {
    box-shadow: inset 0px 0px 15px 0 #000;
    background: #08f;
}

#branding #access ul.menu ul.sub-menu li:nth-child(1) a:hover { border-radius: 0 10px 0 0; }
#branding #access ul.menu ul.sub-menu li:nth-last-child(1) a:hover { border-radius: 0 0 0 10px; }
#branding #access ul.menu ul.sub-menu li:nth-last-child(1) a { border-bottom: 1px solid #333; }
       

       
    #access {
        /* example custom styles */
    }
}



#site-generator a { 
    color: #eee; 
}

#site-generator a:hover {
    color: #0f0;
    text-decoration: none;
}

#site-generator {
    color: #fff;
    font-size: 11px;
    padding: 0.5em 0;
    font-weight: bold;
}

#aeopt-3, #aeopt-4 { 
    text-align: center; 
}

#slider img {
    max-height: 280px !important;
    width: auto;
}
#slider a { display: block !important; }
#slider .slider-excerpt { font-size: 14px; color: #ccc; }
#slider .slider-title { font-weight: bold; color: #f1f1f1; font-size: 13px; text-shadow: 1px 1px 0px #08f; }
#slider { font-size: 12px; }

#breadcrumbs, .breadcrumbs {
    font-size: 11px;
    padding: 0 1em;
    height: 2.4em;
    clear: both;
    line-height: 2em;
    background: #161616;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
    font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
    text-align: left;
}

#breadcrumbs, .breadcrumbs a {
    text-decoration: none;
    color: #aaa;
    font-weight: bold;
    text-transform: lowercase;
}

#breadcrumbs, .breadcrumbs a:hover { color: #ee0; }

#breadcrumbs, .breadcrumbs span.breadcrumb_last,
#breadcrumbs, .breadcrumbs span {
    color: #eee;
    font-size: 11px;
    font-weight: bold;
}

.home #breadcrumbs, .home .breadcrumbs { display: none; }

.attachment-featured-slider { display: block; margin: .5em auto; }

.page-header, .hentry, .no-results, .widget, #slider {
    box-shadow: 0 0 0 1px #222, 0 0 6px 0px #333;
    border-radius: 0 16px;
    border-bottom: 0;
}

#primary {
    float: left;
    margin: 0 -24% 0 0;
    width: 100%;
}

#content {
    margin: 0 30.6% 0 2%;
    width: 72%;
}

#secondary {
    float: right;
    margin-right: 2%;
    width: 22%;
}

.hentry, .no-results, #author-info, #disqus_thread, #content .error404 {
    padding: 0 2% 2% 2%;
}
    
p {
    margin-bottom: 1em;
}

.cci { text-align: center; }

.tinynav { display: none !important; }


/* Fix right margin gap on full-width or sidebar-less pages */
.no-sidebar #content,
.page-template-default-layout-full-width #content,
.full-width #content {
    margin-right: 2% !important;
    width: 96% !important;
}

/* ==========================================================
   Touch-Device Menu Override: Clean Stack & Forced Open
   ========================================================== */

/* Target actual touch devices (phones/tablets), ignoring desktop narrow windows
@media (hover: none) and (pointer: coarse) { */
@media screen and (max-width: 959px) {

    /* Force all submenus to stay open in the natural document flow */
    #branding #access ul.menu ul.sub-menu {
        display: block !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 100% !important;
        float: none !important;
    }

    /* Force main and sub menu items to stack vertically without floating traps */
    #branding #access ul.menu li {
        float: none !important;
        display: block !important;
        width: 100% !important;
    }

    /* Ensure links inside submenus capture touches properly */
    #branding #access ul.menu ul.sub-menu a {
        width: 100% !important;
        position: static !important;
    }

    /* Hide the glitchy JS toggle arrows on touch devices */
    #branding #access .dropdown-toggle {
        display: none !important;
    }
}