/*
Theme Name: HS26
Theme URI: https://hasansyed.com/
Author: Hasan Syed
Author URI: https://hasansyed.com/
Description: Block theme for  HasanSyed.com. 
Version: 26.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, blog, custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, one-column, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks

This theme, like WordPress, is licensed under the GPL.

Use it to make something cool, have fun, and share what you've learned with others
*/

/* ==========================================================================
   Import Custom Styles
   ========================================================================== */

@import url('assets/css/theme.css');

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

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

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

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

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-item {
    margin: 0;
}

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

/* ==========================================================================
   Block Editor Styles
   ========================================================================== */

.wp-block-group.has-background {
    padding: 1.5rem;
    border-radius: 3px;
}

/* Fix editor label font sizes - normalize backend labels */
.editor-styles-wrapper label,
.block-editor-block-inspector__panel-label,
.components-base-control__label,
.components-panel__body-title,
.interface-complementary-area-header__title,
.block-editor-block-inspector .components-base-control__label,
.block-editor-block-inspector .components-panel__body-title,
.components-panel__body-toggle,
.components-form-token-field__label,
.components-input-control__label,
.components-range-control__label,
.components-select-control__label,
.components-toggle-control__label {
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Fix modal headers and editor headings - normalize font sizes */
.components-modal__header h1,
.components-modal__header-heading,
.components-modal__header .components-heading,
[class*="components-modal-header"] h1,
[class*="components-modal-header"] .components-heading,
.interface-complementary-area-header h2,
.interface-complementary-area-header__title,
.block-editor-block-inspector__panel-title,
.components-panel__body-title .components-heading,
.components-panel__body-title,
.components-panel__body-toggle,
.editor-post-card-panel__title-name,
[class*="editor-post-card-panel__title"],
[class*="editor-post-card"] h1,
[class*="editor-post-card"] h2,
[class*="editor-post-card"] h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Fix all headings in editor sidebar and panels */
.block-editor-block-inspector h1,
.block-editor-block-inspector h2,
.block-editor-block-inspector h3,
.block-editor-block-inspector .components-heading,
.components-panel h1,
.components-panel h2,
.components-panel h3,
.components-panel .components-heading,
.interface-complementary-area h1,
.interface-complementary-area h2,
.interface-complementary-area h3,
.interface-complementary-area .components-heading,
.editor-post-card-panel h1,
.editor-post-card-panel h2,
.editor-post-card-panel h3,
.editor-post-card-panel .components-heading,
[class*="editor-"] h1,
[class*="editor-"] h2,
[class*="editor-"] h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Fix modal content headings */
.components-modal__content h1,
.components-modal__content h2,
.components-modal__content h3,
.components-modal__content .components-heading,
.components-modal__frame h1,
.components-modal__frame h2,
.components-modal__frame h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   Responsive Images
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
}

.wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-image img {
    border-radius: 3px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.wp-block-table {
    margin-bottom: 1rem;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.wp-block-table th,
.wp-block-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.wp-block-table th {
    font-weight: 600;
    background-color: var(--bg-primary, #f3f4f6);
}

.wp-block-table tbody tr:hover {
    background-color: var(--bg-primary, #f3f4f6);
}

/* ==========================================================================
   Code
   ========================================================================== */

code {
    background-color: var(--bg-primary, #f3f4f6);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

pre {
    background-color: var(--bg-primary, #f3f4f6);
    padding: 1rem;
    border-radius: 3px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* ==========================================================================
   Quotes
   ========================================================================== */

blockquote {
    border-left: 4px solid var(--accent-primary, #a11818);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-primary, #1a1a1a);
}

.wp-block-quote {
    border-left: 4px solid var(--accent-primary, #a11818);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--text-secondary, #475569);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

.wp-block-list {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Separators
   ========================================================================== */

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border-color, #020202);
    margin: 2rem 0;
}

.wp-block-separator.is-style-wide {
    width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
    height: auto;
    background: none;
    color: var(--text-secondary, #475569);
}

.wp-block-separator.is-style-dots::before {
    content: "\00b7 \00b7 \00b7";
    font-size: 1.5rem;
    letter-spacing: 2em;
    padding-left: 2em;
}

/* ==========================================================================
   Spacers
   ========================================================================== */

.wp-block-spacer {
    clear: both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button {
    margin-bottom: 1rem;
}

.wp-block-button__link {
    display: inline-block;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.wp-block-button.is-style-squared .wp-block-button__link {
    border-radius: 0;
}

.wp-block-button.is-style-rounded .wp-block-button__link {
    border-radius: 50px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .wp-block-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .wp-block-group.has-background {
        padding: 1rem;
    }
    
    .wp-block-table th,
    .wp-block-table td {
        padding: 0.5rem;
    }
}

