/*
Theme Name: iHandi Custom
Description: Custom WordPress theme for iHandi repair services with yellow/white branding. Modern design optimized for device repair businesses.
Author: iHandi Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: ihandi-custom
Tags: business, repair, yellow, responsive, custom
*/

/**
 * WordPress Theme Stylesheet
 * Main styling is handled by assets/css/custom.css
 * This file primarily serves as the WordPress theme identifier
 */

/* Basic Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 8px 16px;
    background: #FFD700;
    color: #000;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* WordPress Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* WordPress Gallery */
.gallery {
    margin: auto;
}

.gallery .gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
}

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

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

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

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

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

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

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

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

.gallery .gallery-caption {
    margin-left: 0;
}

/* WordPress Blocks Support */
.wp-block-image {
    margin: 0 0 1em 0;
}

.wp-block-image img {
    height: auto;
    max-width: 100%;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* WordPress Required Classes */
.sticky {
    /* Styles for sticky posts */
}

.bypostauthor {
    /* Styles for comments by post author */
}

/* Screen Reader Text */
.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: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.comment-form input[type="submit"] {
    background: #FFD700;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.comment-form input[type="submit"]:hover {
    background: #FFA500;
}

/* WordPress Navigation */
.navigation {
    overflow: hidden;
}

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

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

/* WordPress Search Form */
.search-form {
    position: relative;
    display: flex;
    max-width: 300px;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    border-right: none;
    font-size: 16px;
}

.search-form .search-submit {
    padding: 10px 20px;
    background: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 0 25px 25px 0;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.search-form .search-submit:hover {
    background: #FFA500;
    border-color: #FFA500;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .navigation {
        display: none;
    }
    
    body {
        font-family: serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --ihandi-primary: #FFD700;
        --ihandi-secondary: #FFFFFF;
        --ihandi-dark: #000000;
        --ihandi-text: #000000;
        --ihandi-gray: #F5F5F5;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* WordPress Editor Styles */
.wp-block-code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

.wp-block-quote {
    border-left: 4px solid #FFD700;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.wp-block-pullquote {
    border-top: 4px solid #FFD700;
    border-bottom: 4px solid #FFD700;
    padding: 20px 0;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
}

/* WordPress Embed Responsiveness */
.wp-block-embed {
    margin: 0 0 1em 0;
}

.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed video {
    max-width: 100%;
    height: auto;
}

/* Theme Specific Utility Classes */
.ihandi-yellow {
    color: #FFD700 !important;
}

.ihandi-bg-yellow {
    background-color: #FFD700 !important;
}

.ihandi-white {
    color: #FFFFFF !important;
}

.ihandi-bg-white {
    background-color: #FFFFFF !important;
}

.ihandi-dark {
    color: #232323 !important;
}

.ihandi-bg-dark {
    background-color: #232323 !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* End of WordPress Theme Styles
   Main design styles are loaded from assets/css/custom.css */