/*!
Theme Name: G端fte
Theme URI: https://gufte-theme.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A modern WordPress theme built with Tailwind CSS, Swiper JS, and Iconify.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gufte
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, responsive, tailwind, modern

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Base Styles
# Custom Components
# WordPress Core
# Responsive Adjustments
# Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
/* These styles are supplementary to Tailwind CSS */

/* Selection style */
::selection {
    background-color: rgba(37, 99, 235, 0.3);
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

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

/*--------------------------------------------------------------
# Custom Components
--------------------------------------------------------------*/

/* Post cards hover effect */
.post-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom swiper styling */
.swiper-pagination-bullet-active {
    background-color: #2563eb !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #2563eb !important;
}

/* Footer widget lists */
.footer-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #fff;
}

/*--------------------------------------------------------------
# WordPress Core
--------------------------------------------------------------*/

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

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

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

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

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

.wp-caption-text {
    margin: 0.8rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.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: #0f172a;
    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;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5rem;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.5rem 0;
}

/* Comments styling */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author .avatar {
    float: left;
    margin-right: 1rem;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.comment-metadata a {
    color: #6b7280;
}

.comment-content {
    clear: both;
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #2563eb;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
}

.comment-form-cookies-consent input {
    margin-right: 0.5rem;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Utility classes not provided by Tailwind */
.object-fit-cover {
    object-fit: cover;
}

.transition-base {
    transition: all 0.3s ease;
}

.aspect-ratio-16-9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.aspect-ratio-16-9 iframe,
.aspect-ratio-16-9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
