/**
 * Elite Sign Theme — Additional Styles
 * 
 * Supplementary styles for WordPress admin, Gutenberg editor
 * compatibility, and utility overflows.
 * Most styles live in the root style.css.
 * 
 * @package Elite_Sign
 * @since 1.0.0
 */

/* =========================================================================
   1. GUTENBERG EDITOR STYLES
   ========================================================================= */

/* Editor width constraints */
.wp-block {
    max-width: 1200px;
}

.wp-block[data-align="wide"] {
    max-width: 1400px;
}

.wp-block[data-align="full"] {
    max-width: none;
}

/* Editor body typography */
.editor-styles-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1A1A;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0F2A3C;
}

.editor-styles-wrapper h1 {
    font-size: 3rem;
}

.editor-styles-wrapper h2 {
    font-size: 2.5rem;
}

.editor-styles-wrapper h3 {
    font-size: 2rem;
}

.editor-styles-wrapper h4 {
    font-size: 1.5rem;
}

/* Italic headings in editor */
.editor-styles-wrapper em,
.editor-styles-wrapper i {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

/* Editor links */
.editor-styles-wrapper a {
    color: #009BC1;
    text-decoration: none;
}

.editor-styles-wrapper a:hover {
    color: #007a99;
}

/* Editor buttons */
.editor-styles-wrapper .wp-block-button__link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Editor blockquotes */
.editor-styles-wrapper blockquote {
    border-left: 4px solid #009BC1;
    padding-left: 24px;
    font-style: italic;
    color: #555555;
    margin: 24px 0;
}

/* Editor images */
.editor-styles-wrapper img {
    border-radius: 12px;
}


/* =========================================================================
   2. WORDPRESS ADMIN STYLES
   ========================================================================= */

/* Admin bar offset when logged in */
.admin-bar .elite-header {
    top: 32px;
}

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

@media screen and (max-width: 600px) {
    .admin-bar .elite-header {
        top: 0;
    }
}

/* Custom post type admin icons */
.dashicons-format-gallery:before {
    color: #009BC1;
}

.dashicons-format-quote:before {
    color: #DD0183;
}


/* =========================================================================
   3. WORDPRESS BLOCK ALIGNMENTS IN THEME
   ========================================================================= */

/* Full-width blocks break out of container */
.elite-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.elite-content .alignwide {
    margin-left: calc(-25vw + 50%);
    margin-right: calc(-25vw + 50%);
    max-width: 100vw;
    width: calc(100% + 50vw - 100%);
}

/* Center aligned blocks */
.elite-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Left/Right aligned blocks */
.elite-content .alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.elite-content .alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}


/* =========================================================================
   4. WORDPRESS GALLERY BLOCK
   ========================================================================= */

.wp-block-gallery {
    gap: 12px;
}

.wp-block-gallery .wp-block-image {
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 0;
}

.wp-block-gallery figcaption {
    font-size: 13px;
    color: #555555;
    padding: 8px 12px;
}


/* =========================================================================
   5. WORDPRESS EMBED/VIDEO BLOCKS
   ========================================================================= */

.wp-block-embed {
    margin: 32px 0;
}

.wp-block-embed iframe {
    border-radius: 12px;
    max-width: 100%;
}

.wp-block-video video {
    border-radius: 12px;
}


/* =========================================================================
   6. WORDPRESS SEPARATOR BLOCK
   ========================================================================= */

.wp-block-separator {
    border: none;
    border-top: 2px solid #E5E7EB;
    margin: 48px auto;
    max-width: 120px;
}

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

.wp-block-separator.is-style-dots {
    border: none;
    max-width: none;
    text-align: center;
}

.wp-block-separator.is-style-dots:before {
    color: #009BC1;
    font-size: 24px;
    letter-spacing: 16px;
}


/* =========================================================================
   7. WORDPRESS TABLE BLOCK
   ========================================================================= */

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}

.wp-block-table th {
    background: #0F2A3C;
    color: #FFFFFF;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
}

.wp-block-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #E5E7EB;
}

.wp-block-table tr:nth-child(even) td {
    background: #f9fafb;
}

.wp-block-table figcaption {
    font-size: 13px;
    color: #555555;
    margin-top: 8px;
}


/* =========================================================================
   8. UTILITY OVERFLOWS
   ========================================================================= */

/* Smooth scroll behavior */
html {
    scroll-padding-top: 90px;
}

/* Selection color */
::selection {
    background: rgba(0, 155, 193, 0.2);
    color: #0F2A3C;
}

::-moz-selection {
    background: rgba(0, 155, 193, 0.2);
    color: #0F2A3C;
}

/* Custom scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #009BC1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007a99;
}


/* =========================================================================
   9. LOADING STATES
   ========================================================================= */

.elite-loading {
    position: relative;
    min-height: 200px;
}

.elite-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #E5E7EB;
    border-top-color: #009BC1;
    border-radius: 50%;
    animation: elite-spin 0.8s linear infinite;
}

@keyframes elite-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================================
   10. WOOCOMMERCE COMPATIBILITY (if needed)
   ========================================================================= */

.woocommerce .products .product {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce .products .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.woocommerce .button,
.woocommerce .added_to_cart {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}
