/*
Theme Name: Anything iTech Wayback
Theme URI: http://www.anythingitechmv.com/
Author: Anything iTech Martha's Vineyard
Author URI: http://www.anythingitechmv.com/
Description: Classic theme rebuilt from Wayback Machine archive of iBlogPro theme for Anything iTech Martha's Vineyard. Specializing in iPhone repair, Mac/PC repair, and network services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anythingitech-wayback
Tags: one-column, two-columns, right-sidebar, custom-menu, featured-images, theme-options

This theme was rebuilt from a Wayback Machine snapshot of the original iBlogPro theme.
*/

/* Additional theme-specific overrides can go here */

/* Ensure WordPress admin bar doesn't break fixed elements */
body.admin-bar #page {
    margin-top: 0;
}

/* Fix for missing Cufon font replacement - fallback styling */
.site-description,
.fcontent .fsub,
.fcontent .ftitle,
.pagetitle,
.footer-site-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.ftitle {
    font-size: 48px;
    line-height: 1.1;
}

.fsub {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875em;
    font-style: italic;
    text-align: center;
}

/* Screen reader text for accessibility */
.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 !important;
    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, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.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;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix clearfix */
.fix::after,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   DROPDOWN MENU FIX
   Hide submenus by default, show on hover
   ============================================ */

/* Hide submenus and children by default */
#nav ul.dropdown ul,
#nav ul.dropdown .sub-menu,
#nav ul.dropdown .children,
#nav .sub-menu,
#nav .children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    width: 220px;
    background: #444;
    border: 1px solid #222;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding-bottom: 5px;
}

/* Parent items need relative positioning */
#nav ul.dropdown > li,
#nav ul.dropdown li.menu-item-has-children,
#nav ul.dropdown li.page_item_has_children {
    position: relative;
}

/* Show dropdown on hover */
#nav ul.dropdown li:hover > ul,
#nav ul.dropdown li:hover > .sub-menu,
#nav ul.dropdown li:hover > .children,
#nav ul.dropdown li.menu-item-has-children:hover > .sub-menu,
#nav ul.dropdown li.page_item_has_children:hover > .children {
    display: block;
}

/* Dropdown items stack vertically */
#nav ul.dropdown ul li,
#nav ul.dropdown .sub-menu li,
#nav ul.dropdown .children li {
    float: none;
    display: block;
    width: 100%;
    border: none;
    background: none;
}

/* Dropdown links styling */
#nav ul.dropdown ul li a,
#nav ul.dropdown .sub-menu li a,
#nav ul.dropdown .children li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-shadow: none;
    border: none;
    background: none;
}

#nav ul.dropdown ul li a:hover,
#nav ul.dropdown .sub-menu li a:hover,
#nav ul.dropdown .children li a:hover {
    background: #000;
}

/* Third level dropdowns */
#nav ul.dropdown ul ul,
#nav ul.dropdown .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Hide elements that should be hidden */
.hidden {
    display: none !important;
}

/* WordPress gallery support */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Comments styling */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin-left: 2em;
    padding: 0;
}

.comment-body {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

.comment-meta {
    margin-bottom: 0.5em;
}

.comment-author {
    font-weight: bold;
}

.comment-metadata {
    font-size: 0.875em;
    color: #666;
}

.reply {
    margin-top: 0.5em;
}

/* Post navigation */
.post-navigation,
.posts-navigation {
    margin: 2em 0;
    overflow: hidden;
}

.nav-previous {
    float: left;
    width: 50%;
}

.nav-next {
    float: right;
    text-align: right;
    width: 50%;
}

/* Pagination */
.pagination {
    margin: 2em 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.25em;
    background: #f1f1f1;
    text-decoration: none;
}

.page-numbers.current {
    background: #333;
    color: #fff;
}

/* Widget styling defaults */
.widget {
    margin-bottom: 2em;
}

.widget-title {
    margin-bottom: 1em;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.25em 0;
}
