/*
Theme Name: ФрешБайт
Theme URI: https://freshbite.axionai.dev
Author: AxionAI - Dmitriy
Author URI: https://axionai.dev
Description: Современная тема WordPress для ресторанов и служб доставки еды. Адаптивный дизайн на Tailwind CSS, SEO-оптимизированная структура с поддержкой блога для сбора органического трафика. Готова к закону ФЗ-168 о русификации.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freshbite
Tags: food-and-drink, blog, one-column, two-columns, custom-header, custom-menu, featured-images, translation-ready, theme-options, full-width-template
*/

/* ==========================================================================
   Base / Reset
   ========================================================================== */

body {
    background-color: #FFFCF2;
    color: #2B2D42;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #E63946;
    color: #fff;
}

/* ==========================================================================
   Navigation Glass Effect
   ========================================================================== */

.glass-nav {
    background: rgba(255, 252, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Hide Scrollbar for Tabs
   ========================================================================== */

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   WordPress Core Classes (Theme Check REQUIRED)
   ========================================================================== */

/* Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

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

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    padding-top: 0.5rem;
    text-align: center;
}

/* Galleries */
.gallery {
    display: grid;
    grid-gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Screen Reader Text (Accessibility - Theme Check REQUIRED) */
.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;
}

/* Sticky Posts */
.sticky {
    border-left: 4px solid #E63946;
    padding-left: 1rem;
}

/* Posts & Pages */
.bypostauthor {
    display: block;
}

/* ==========================================================================
   Blog / Single Post Styles
   ========================================================================== */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1D3557;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.entry-content a {
    color: #E63946;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #C1121F;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.entry-content blockquote {
    border-left: 4px solid #E63946;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.entry-content th {
    background: #1D3557;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1D3557;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #E63946;
    color: #fff;
    border-color: #E63946;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 9999px;
    width: 40px;
    height: 40px;
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid transparent;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.comment-respond .comment-form .submit {
    background: #E63946;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-respond .comment-form .submit:hover {
    background: #C1121F;
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}

.widget-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #E63946;
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #2B2D42;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #E63946;
}
