/*
Theme Name: SDC Theme
Theme URI: https://example.com/sdc-theme
Author: SDC Team
Author URI: https://example.com
Description: A hybrid WordPress theme combining PHP templates with Gutenberg block editor support via theme.json
Version: 0.1.20
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdc-theme
Domain Path: /languages
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, translation-ready, wide-blocks, block-styles, style-variations
*/

/* ==========================================================================
   Theme Base Styles
   These are minimal base styles. Most styling should be done through
   theme.json for block editor consistency.
   ========================================================================== */

/* CSS Reset - Minimal */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Theme Structure Styles
   ========================================================================== */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-contrast);
    color: var(--color-base);
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Main layout container */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.site-header {
    width: 100%;
}

/* Main content area */
.site-main {
    flex: 1;
}

/* Footer styles */
.site-footer {
    width: 100%;
}

/* ==========================================================================
   WordPress Required Classes
   ========================================================================== */

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

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

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: calc(-1 * var(--wp--custom--spacing--outer, 0px));
    margin-right: calc(-1 * var(--wp--custom--spacing--outer, 0px));
}

/* 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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-muted);
    clip: auto !important;
    clip-path: none;
    color: var(--color-contrast);
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Block Editor Compatibility
   ========================================================================== */

/* Ensure blocks have proper spacing */
.wp-block {
    margin-top: 0;
    margin-bottom: 0;
}

/* Post content wrapper */
.entry-content > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

.entry-content > *:first-child {
    margin-block-start: 0;
}

/* Navigation block adjustments for classic header */
.wp-block-navigation .wp-block-navigation-item__content {
    text-decoration: none;
}
