/*
Theme Name: SEDSO
Theme URI: https://www.sedso.io
Author: SEDSO
Author URI: https://www.sedso.io
Description: A clean, minimal WordPress theme designed for optimal readability. Features the Lexend font family, single-column blog layout, and elegant typography. Built for WordPress 6.9+ with Full Site Editing support.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sedso
Tags: blog, one-column, block-patterns, block-styles, editor-style, full-site-editing, wide-blocks
*/

/* ==========================================================================
   Additional Custom Styles (beyond theme.json)
   ========================================================================== */

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Ensure consistent box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove any header border */
header,
.wp-block-template-part header,
header.wp-block-group {
    border: none !important;
    border-bottom: none !important;
}

/* Reduce default heading margins */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title {
    margin-top: 0;
}

/* Tighter post title spacing */
.wp-block-post-title a {
    text-decoration: none;
    color: inherit;
}

/* Media elements responsive within content */
.wp-block-post-content img,
.wp-block-post-content video,
.wp-block-post-content iframe,
.wp-block-post-content embed,
.wp-block-post-content object {
    max-width: 100%;
    height: auto;
}

/* Video wrapper for aspect ratio maintenance */
.wp-block-video video,
.wp-block-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Image captions styling */
.wp-block-image figcaption,
.wp-block-video figcaption {
    font-size: 0.875rem;
    font-weight: 300;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
}

/* Gallery consistent styling */
.wp-block-gallery {
    gap: 10px;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Comment form improvements */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    transition: border-color 0.2s ease;
}

.comment-form textarea::placeholder {
    color: #999;
    font-weight: 300;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #000;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    font-size: 0.8125rem;
}

.comment-form .form-submit input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #333;
}

/* Comment reply title - elegant and small */
.comment-reply-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

/* Space between comment form fields */
.comment-form p {
    margin-bottom: 15px;
}

.comment-form .comment-form-comment {
    margin-top: 10px;
}

/* Hide required fields text */
.comment-notes,
.comment-form .comment-notes,
.wp-block-post-comments-form .comment-notes,
p.comment-notes,
.logged-in-as {
    display: none !important;
}

/* Comment list styling */
.wp-block-comments .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.wp-block-comments .comment-author {
    font-weight: 600;
}

.wp-block-comments .comment-metadata {
    font-size: 0.875rem;
    color: #666;
}

.wp-block-comments .comment-content {
    margin-top: 0.75rem;
}

.wp-block-comments .reply a {
    font-size: 0.875rem;
    color: #000;
    text-decoration: underline;
}

/* Search form styling */
.wp-block-search__input {
    font-family: 'Lexend', sans-serif;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.wp-block-search__input:focus {
    outline: none;
    border-color: #000;
}

.wp-block-search__button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.wp-block-search__button:hover {
    background: #333;
}

/* QR Code container */
.sedso-qr-code {
    display: flex;
    justify-content: center;
}

.sedso-qr-code img {
    max-width: 150px;
    height: auto;
}

/* Separator/HR styling */
.wp-block-separator {
    border: none;
    border-top: 1px solid #ddd;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Footer link styling */
.sedso-footer-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

.sedso-footer-link:hover {
    opacity: 0.7;
}

/* RSS link styling */
.sedso-rss-link,
footer a[href*="/feed/"] {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sedso-rss-link:hover,
footer a[href*="/feed/"]:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Print styles */
@media print {
    .wp-block-search,
    .sedso-qr-code,
    .wp-block-comments-form {
        display: none;
    }
}

/* Accessibility: Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    z-index: 100000;
    text-decoration: none;
}
