/**
 * Butterfly Services Theme - Additional Styles
 *
 * @package Butterfly_Services
 * @version 1.0.0
 */

/* ==========================================================================
   Additional Theme Styles
   ========================================================================== */

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Entry Meta */
.entry-meta {
    color: var(--butterfly-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: var(--butterfly-primary);
}

.entry-meta a:hover {
    color: var(--butterfly-accent);
}

/* Entry Title */
.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--butterfly-text-dark);
}

.entry-title a:hover {
    color: var(--butterfly-primary);
}

/* Entry Content */
.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--butterfly-gray-200);
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a {
    background-color: var(--butterfly-gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tags-links a:hover {
    background-color: var(--butterfly-primary);
    color: white;
}

/* Featured Image */
.entry-thumbnail {
    margin-bottom: 2rem;
}

.entry-thumbnail img {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--butterfly-gray-200);
    border-bottom: 1px solid var(--butterfly-gray-200);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--butterfly-text-muted);
}

.post-navigation .nav-title {
    font-weight: 600;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--butterfly-gray-200);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem;
    background-color: var(--butterfly-gray-50);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 50%;
}

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

.comment-metadata {
    font-size: 0.875rem;
    color: var(--butterfly-text-muted);
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--butterfly-primary);
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--butterfly-gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--butterfly-primary);
    box-shadow: 0 0 0 3px rgba(0, 197, 239, 0.2);
}

.form-submit input[type="submit"] {
    background-color: var(--butterfly-primary);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--butterfly-transition);
}

.form-submit input[type="submit"]:hover {
    background-color: var(--butterfly-accent);
    color: var(--butterfly-text-dark);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background-color: var(--butterfly-gray-100);
    color: var(--butterfly-text-dark);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--butterfly-transition);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--butterfly-primary);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

/* Social Icons */
.butterfly-social-icons {
    display: flex;
    gap: 1rem;
}

.butterfly-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--butterfly-transition);
}

.butterfly-social-icons svg {
    fill: currentColor;
}

.butterfly-header .butterfly-social-icons a {
    color: white;
}

.butterfly-header .butterfly-social-icons a:hover {
    color: var(--butterfly-accent);
}

.butterfly-footer .butterfly-social-icons a {
    color: var(--butterfly-gray-300);
}

.butterfly-footer .butterfly-social-icons a:hover {
    color: white;
}

/* Mobile Menu */
.butterfly-mobile-menu {
    background-color: var(--butterfly-primary);
    padding: 1rem;
}

.butterfly-mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
}

.butterfly-mobile-menu a:hover {
    background-color: var(--butterfly-accent);
    color: var(--butterfly-text-dark);
}

.butterfly-mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

/* Footer Styles */
.butterfly-footer-nav {
    display: flex;
    gap: 1.5rem;
}

.butterfly-footer-nav a {
    color: white;
}

.butterfly-footer-nav a:hover {
    color: var(--butterfly-accent);
}

.butterfly-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .butterfly-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.butterfly-footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.butterfly-legal-links {
    display: flex;
    gap: 1rem;
}

.butterfly-legal-links a {
    color: var(--butterfly-gray-300);
    font-size: 0.875rem;
}

.butterfly-legal-links a:hover {
    color: white;
}

/* Archive Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--butterfly-gray-200);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--butterfly-text-muted);
}

/* Loading States */
.butterfly-loading {
    position: relative;
    pointer-events: none;
}

.butterfly-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--butterfly-gray-300);
    border-top-color: var(--butterfly-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.screen-reader-shortcut {
    position: absolute;
    left: -9999em;
}

.screen-reader-shortcut:focus {
    position: fixed;
    left: 6px;
    top: 6px;
    height: auto;
    width: auto;
    padding: 15px 23px 14px;
    background-color: #f1f1f1;
    color: #21759b;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    z-index: 100000;
}

/* Print Styles */
@media print {

    .butterfly-header,
    .butterfly-footer,
    .butterfly-back-to-top,
    .post-navigation,
    .comments-area {
        display: none;
    }

    body {
        background: none;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}