/*
 * Theme Name: TheFitBodyAI
 * Theme URI: https://thefitbody.local
 * Description: A modern, responsive WordPress theme for yoga, fitness, and wellness content
 * Version: 1.0.0
 * Author: TheFitBody
 * Author URI: https://thefitbody.local
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: thefitbody
 * Domain Path: /languages
 */

:root {
    --primary-color: #1e5a3f;
    --secondary-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a56 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.08) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.4));
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(243, 156, 18, 0.2);
    color: white !important;
}

.nav-link.active {
    background-color: var(--secondary-color);
    color: white !important;
}

.search-box {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 200px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-box i {
    color: rgba(255,255,255,0.7);
}

/* Container Styling */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Main Content Wrapper */
main {
    min-height: 100vh;
    padding: 3rem 0;
}

main .container {
    padding: 2rem 15px;
}

/* Section Styling */
.content-section {
    padding: 3rem 0;
    background: white;
    margin-bottom: 2rem;
}

.content-section .container {
    padding: 2rem 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Category Section */
.category-section {
    background: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.category-section .container {
    padding: 2rem 15px;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a56 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 90, 63, 0.3);
}

.category-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.category-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Thumb Box */
.thumb-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.thumb-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.thumb-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a56 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
}

.thumb-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.thumb-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.thumb-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.thumb-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-learn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.btn-learn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Advertisement Container */
.ad-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a56 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

/* Swiper Sliders */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(30, 90, 63, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .thumb-box {
        margin-bottom: 1.5rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .category-card {
        min-height: 150px;
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }
}

/* General Post/Page Styles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.entry-meta {
    color: #999;
    font-size: 0.95rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Blog & Archive Styles */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--primary-color);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

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

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* Sidebar */
.sidebar {
    margin-left: 2rem;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* Search Widget */
.search-widget input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.search-widget button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.search-widget button:hover {
    background: var(--secondary-color);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

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

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Responsive Container Styling */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    main .container {
        padding: 2rem 20px;
    }

    .content-section .container {
        padding: 2rem 20px;
    }

    .category-section .container {
        padding: 2rem 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    main .container {
        padding: 1.5rem 15px;
    }

    .content-section .container {
        padding: 1.5rem 15px;
    }

    .category-section .container {
        padding: 1.5rem 15px;
    }

    main {
        padding: 2rem 0;
    }

    .content-section {
        padding: 2rem 0;
    }

    .category-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    main .container {
        padding: 1rem 12px;
    }

    .content-section .container {
        padding: 1rem 12px;
    }

    .category-section .container {
        padding: 1rem 12px;
    }

    main {
        padding: 1.5rem 0;
    }

    .content-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .category-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }
}
