/**
 * The Beard Guy LLC - Custom Styles
 */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a1a2e;
    transform: translateY(-5px);
}

/* Form Response Messages */
.form-response {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
}

/* Sticky Header */
.site-header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Menu Open Body State */
body.menu-open {
    overflow: hidden;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Service Card Animation */
.service-card,
.pricing-card,
.testimonial-card,
.team-card {
    opacity: 0;
}

.service-card.fade-in-up,
.pricing-card.fade-in-up,
.testimonial-card.fade-in-up,
.team-card.fade-in-up {
    opacity: 1;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

/* Widget Styles */
.widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

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

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #666;
    transition: all 0.3s ease;
}

.widget a:hover {
    color: #e94560;
    padding-left: 5px;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
}

.widget_search button {
    padding: 0.75rem 1.25rem;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search button:hover {
    background: #1a1a2e;
}

/* Tag Cloud Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tagcloud a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: #e94560;
    color: #fff;
    padding-left: 1rem;
}

/* Calendar Widget */
.calendar_wrap table {
    width: 100%;
}

.calendar_wrap th,
.calendar_wrap td {
    text-align: center;
    padding: 0.5rem;
}

.calendar_wrap caption {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Comments Section */
.comments-area {
    margin-top: 4rem;
}

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

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

.comment-item {
    margin-bottom: 2rem;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.comment-avatar .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-size: 1.1rem;
    margin: 0;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
}

.comment-text {
    color: #666;
    line-height: 1.7;
}

.comment-actions {
    margin-top: 1rem;
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    font-size: 0.9rem;
    color: #e94560;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results .search-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #e94560;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
}

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

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .btn,
    .comment-form {
        display: none !important;
    }
    
    .site-main {
        padding: 0;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
