/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #000001;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #000001;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #333333;
}

/* Brand Logo and Title */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-family: 'Architype Tschichold', 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #000001;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000001;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #000001;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000001;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000001;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000001;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* Messages */
.messages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #000001;
    line-height: 1.3;
}

.card-title a {
    color: #000001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #333333;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
}

.card-meta .category {
    background: #f8f9fa;
    color: #000001;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.featured-image,
.post-image,
.recommendation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .featured-image,
.card:hover .post-image,
.card:hover .recommendation-image {
    transform: scale(1.08);
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #000001;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #000001;
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #000001;
    background-color: transparent;
    color: #000001;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #000001;
    color: #ffffff;
}

.btn-primary {
    background-color: #000001;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000001;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #000001;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #000001;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000001;
    font-size: 0.9rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666666;
}

.form-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666666;
    font-style: italic;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.social-sharing h4 {
    margin: 0 0 15px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #000001;
    font-weight: 600;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #000001;
    background: #000001;
    color: white;
    font-family: 'Raleway', sans-serif;
}

.share-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    font-size: 16px;
}

.share-btn span {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sharing-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .share-btn i {
        font-size: 14px;
    }
}

/* Comments */
.comment {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #000001;
}

.comment-date {
    color: #666666;
    font-size: 0.9rem;
}

.comment-content {
    color: #555555;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #000001;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: 'Architype Tschichold', 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #cccccc;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-list {
    list-style: none;
}

.footer-link {
    color: #cccccc;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    color: #999999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000001;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin-bottom: 1rem;
    color: #000001;
    font-size: 1.8rem;
}

.modal-header p {
    color: #666666;
    font-size: 1.1rem;
}

.newsletter-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Reaction System */
.reaction-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.reaction-btn:hover {
    border-color: #000001;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reaction-btn.active {
    border-color: #000001;
    background-color: #f8f9fa;
}

.reaction-icon {
    font-size: 1.5rem;
    color: #666666;
    transition: color 0.3s ease;
}

.reaction-btn:hover .reaction-icon,
.reaction-btn.active .reaction-icon {
    color: #000001;
}

.reaction-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
}

.reaction-btn:hover .reaction-label,
.reaction-btn.active .reaction-label {
    color: #000001;
}

.reaction-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000001;
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000001;
    border-bottom: 2px solid #000001;
    padding-bottom: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background-color: #ffffff;
    padding-left: 0.5rem;
    border-radius: 4px;
}

.sidebar-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-item-content {
    flex: 1;
}

.sidebar-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000001;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sidebar-item-title a {
    color: #000001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-item-title a:hover {
    color: #333333;
}

.sidebar-item-meta {
    font-size: 0.8rem;
    color: #666666;
}

/* Article Hero Section */
.article-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    height: 100%;
}

.hero-image-container {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 1, 0.7) 0%,
        rgba(0, 0, 1, 0.4) 50%,
        rgba(0, 0, 1, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.hero-meta .category {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Architype Tschichold', 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-tags .tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-no-image .hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: #000001;
}

.hero-no-image .hero-meta {
    color: #666666;
}

.hero-no-image .hero-meta .category {
    background: #000001;
    color: #ffffff;
}

.hero-no-image .hero-title {
    color: #000001;
    text-shadow: none;
}

.hero-no-image .hero-excerpt {
    color: #555555;
    text-shadow: none;
}

.hero-no-image .hero-tags .tag {
    background: #f0f0f0;
    color: #000001;
    border: 1px solid #e0e0e0;
}

.hero-no-image .hero-tags .tag:hover {
    background: #000001;
    color: #ffffff;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.article-main {
    max-width: none;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .hero-image-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-excerpt {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 2rem 1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-excerpt {
        font-size: 1rem;
    }
    
    .hero-no-image {
        padding: 2rem 1rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000001;
}

.section-header p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Posts Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Main Content Layout */
.main-content-section {
    padding: 2rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Trending Sidebar */
.trending-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000001;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trending-item:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
    transform: translateX(4px);
}

.trending-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #888888;
}

.trending-meta .category {
    background: #f0f0f0;
    color: #000001;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.trending-title a {
    color: #000001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-title a:hover {
    color: #333333;
}

.trending-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #666666;
}

.trending-stats .views,
.trending-stats .likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Latest Content */
.latest-content {
    min-width: 0;
}

/* Latest Posts Grid */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.latest-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.latest-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.latest-card .card-content {
    padding: 1.25rem;
}

.latest-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.latest-card .card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.latest-card .card-image {
    height: 150px;
}

@media (max-width: 1024px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trending-sidebar {
        position: static;
        order: 2;
    }
    
    .latest-content {
        order: 1;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .trending-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trending-image {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
}

/* Search Bar Styles */
.search-section {
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #000001;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: #000001;
}

.search-input::placeholder {
    color: #999999;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #000001;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

.search-btn svg {
    transition: transform 0.3s ease;
}

.search-btn:hover svg {
    transform: rotate(5deg);
}

/* Sidebar Search */
.sidebar-search-form .search-input-group {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.sidebar-search-form .search-input {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.sidebar-search-form .search-btn {
    padding: 0.75rem;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666666;
}

.card-stats .views,
.card-stats .likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Button Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Tag Links */
.tags a.tag {
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags a.tag:hover {
    background: #000001;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Topics Page Styles */
.topics-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.topics-hero h1 {
    font-family: 'Architype Tschichold', 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000001;
}

.topics-hero p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.topics-section {
    padding: 4rem 0;
}

.topics-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.topics-section .topics-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* Force grid layout - override any conflicting styles */
.topics-section .container .topics-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

.topics-section .container .topics-grid > * {
    display: block !important;
    width: auto !important;
    float: none !important;
}

.topic-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    aspect-ratio: 1 !important;
    min-height: 200px !important;
}

.topic-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #000001, #333333) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.topic-card:hover::before {
    transform: scaleX(1) !important;
}

.topic-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-8px) !important;
}

.topic-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #000001, #333333) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.topic-card:hover .topic-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.topic-icon .icon {
    font-size: 2rem !important;
    filter: grayscale(0) !important;
    transition: transform 0.3s ease !important;
    text-shadow: 
        -1px -1px 0 #000001,
        1px -1px 0 #000001,
        -1px 1px 0 #000001,
        1px 1px 0 #000001,
        -2px 0 0 #000001,
        2px 0 0 #000001,
        0 -2px 0 #000001,
        0 2px 0 #000001 !important;
}

.topic-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
}

.topic-title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.75rem 0 !important;
    color: #000001 !important;
    line-height: 1.3 !important;
}

.topic-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.post-count {
    background: #f8f9fa !important;
    color: #000001 !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border: 1px solid #e9ecef !important;
}

@media (max-width: 768px) {
    .topics-hero h1 {
        font-size: 2.5rem;
    }
    
    .topics-hero p {
        font-size: 1.1rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .topic-card {
        padding: 1.5rem !important;
    }
}