/*
Theme Name: NitroShock
Description: A modern, plugin-compatible WordPress theme with AI-powered customization capabilities. Features responsive design, flexible layouts, and extensive plugin support.
Author: NitroShock Theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nitroshock
Domain Path: /languages
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-logo, custom-menu, editor-colors, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4

NitroShock WordPress Theme, Copyright 2025
NitroShock is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Container */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    width: 100%;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

.site-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #0073aa;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
}

/* Main Content Area */
.content-area {
    flex: 1;
}

.main {
    margin: 40px 0;
}

/* Sidebar */
.widget-area {
    flex: 0 0 300px;
    margin-top: 40px;
}

.widget {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.widget-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #0073aa;
}

/* Posts */
.post,
.page {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #0073aa;
}

.entry-content {
    line-height: 1.7;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.more-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background: #005a87;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget {
    color: #ccc;
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 14px;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 15px;
}

input[type="submit"],
button,
.wp-block-button__link {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover,
.wp-block-button__link:hover {
    background: #005a87;
}

/* 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: 14px;
    font-weight: bold;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 7px;
    width: auto;
    z-index: 100000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        padding: 20px;
        gap: 10px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-content {
        flex-direction: column;
        gap: 0;
    }
    
    .widget-area {
        flex: none;
        margin-top: 20px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 24px;
    }
}

/* Plugin Compatibility */
/* WooCommerce */
.woocommerce div.product,
.woocommerce-page div.product {
    margin-bottom: 40px;
}

/* Contact Form 7 */
.wpcf7-form {
    margin: 20px 0;
}

/* Yoast SEO Breadcrumbs */
.yoast-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Jetpack */
.sharedaddy {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Block Editor Styles */
.wp-block-group {
    margin-bottom: 30px;
}

.wp-block-columns {
    margin-bottom: 30px;
}

.wp-block-image {
    margin-bottom: 20px;
}

.wp-block-gallery {
    margin-bottom: 30px;
}

/* Custom AI Styling Classes (for future AI integration) */
.ai-generated-header {
    position: relative;
}

.ai-generated-footer {
    position: relative;
}

.ai-generated-sidebar {
    position: relative;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .menu-toggle {
        display: none;
    }
    
    .site-content {
        max-width: none;
        padding: 0;
    }
    
    .content-area {
        max-width: none;
    }
}

/* Layout Classes for Sidebar Positioning */
.no-sidebar .site-content {
    display: block;
}

.no-sidebar .content-area {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Left */
.sidebar-left .site-content {
    flex-direction: row-reverse;
}

.sidebar-left .widget-area {
    margin-right: 30px;
    margin-left: 0;
}

/* Sidebar Right (default) */
.sidebar-right .widget-area {
    margin-left: 30px;
    margin-right: 0;
}

/* Full Width Template */
.page-template-page-full-width .site-content,
.full-width .site-content {
    display: block;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
}

.page-template-page-full-width .content-area,
.full-width .content-area {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
}

.page-template-page-full-width .main,
.full-width .main {
    margin: 0;
    padding: 40px 20px;
    max-width: 100%;
}

/* Also apply full-width to pages with no-sidebar meta */
body.no-sidebar.page .site-content {
    max-width: 100%;
}

body.no-sidebar.page .content-area {
    max-width: 100%;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .has-sidebar .site-content {
        flex-direction: column;
    }
    
    .sidebar-left .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        margin: 20px 0 0 0 !important;
        flex: none;
    }
    
    .no-sidebar .content-area {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .page-template-page-full-width .content-area,
    .full-width .content-area {
        padding: 0;
        max-width: 100%;
    }
}
