/* WishU Theme Styles - Version 2.1 - FIXED */

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Navigation */
.site-navigation {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-navigation {
        display: flex;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Search */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, var(--secondary), var(--background));
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 16rem;
}

@media (min-width: 768px) {
    .hero-image {
        height: 24rem;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Categories Section */
.categories-section {
    background: white;
    padding: 3rem 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--secondary);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background-color: rgba(232, 112, 74, 0.1);
    color: var(--primary);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Wish Card */
.wish-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out both;
}

.wish-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wish-image {
    position: relative;
    overflow: hidden;
    height: 12rem;
}

.wish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wish-card:hover .wish-image img {
    transform: scale(1.1);
}

.wish-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wish-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wish-title a {
    color: var(--foreground);
    text-decoration: none;
}

.wish-card:hover .wish-title a {
    color: var(--primary);
}

.wish-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.wish-category a {
    color: var(--primary);
    text-decoration: none;
}

.wish-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wish-read-more {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0.375rem;
    text-decoration: none;
}

.wish-read-more:hover {
    background-color: rgba(232, 112, 74, 0.1);
}

/* Sidebar Widgets */
.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

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

.widget-search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.widget-search button {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

/* Recent Posts Widget */
.widget-recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-link {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.recent-post-link:hover {
    color: var(--primary);
}

.recent-post-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Categories Widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.widget-categories li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-categories a:hover {
    color: var(--primary);
}

.category-count {
    background-color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

/* Single Post */
.single-post {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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

.entry-image {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.entry-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: var(--foreground);
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: rgba(232, 112, 74, 0.1);
    color: var(--primary);
}

/* Category Header */
.category-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.category-header h1 {
    margin-bottom: 1rem;
}

.category-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* Page Content */
.page-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single-page {
    width: 100%;
}

.single-page .entry-title {
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
    padding: 3rem 1rem;
    color: white;
}

.newsletter-inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-inner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #f3f3f3;
}

/* Footer */
.site-footer {
    background-color: var(--foreground);
    color: white;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-branding .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.footer-branding .logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

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

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: var(--secondary);
    color: var(--foreground);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0.75rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .single-post,
    .page-content {
        padding: 1rem;
    }
}
