/* Toplist Style Landing Page - Tuân thủ color thương hiệu */
/* Màu chính: #f06421 (cam), #140000 (đen), #ffffff (trắng) */

/* Landing page specific overrides */
body.landing-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #140000;
    background-color: #ffffff;
}

/* Override header for landing page */
body.landing-page .header {
    background: #ffffff;
    color: #140000;
    box-shadow: 0 2px 10px rgba(20,0,0,0.1);
}

body.landing-page .header .logo h1 {
    color: #f06421;
}

body.landing-page .header .nav-link:hover {
    background: #f06421;
    color: #ffffff;
}

body.landing-page .header .btn-primary {
    background: #f06421;
    color: #ffffff;
}

body.landing-page .header .btn-primary:hover {
    background: #e55a1a;
}

body.landing-page .header .btn-outline {
    color: #f06421;
    border-color: #f06421;
}

body.landing-page .header .btn-outline:hover {
    background: #f06421;
    color: #ffffff;
}

/* Hero Section - Tuân thủ color thương hiệu */
.hero-banner {
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-top: 2rem;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: #ffffff;
    color: #f06421;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    background: #f8f9fa;
}

/* Categories Grid */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #140000;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f06421;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f06421, #e55a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Overlay chỉ áp dụng cho category-image không có ảnh */
.category-image.has-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(240, 100, 33, 0.8), rgba(229, 90, 26, 0.8));
    z-index: 1;
}

/* Ảnh đại diện hiển thị rõ ràng */
.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.category-icon {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.category-content {
    padding: 1.5rem;
    text-align: center;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-count {
    background: #f8f9fa;
    color: #f06421;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Featured Posts */
.featured-posts {
    padding: 4rem 0;
    background: #f8f9fa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f06421;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f06421, #e55a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Overlay chỉ áp dụng cho post-image không có ảnh */
.post-image.has-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(240, 100, 33, 0.8), rgba(229, 90, 26, 0.8));
    z-index: 1;
}

/* Ảnh bài viết hiển thị rõ ràng */
.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #140000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-title a {
    color: #140000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #f06421;
}

.post-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.post-author {
    color: #f06421;
    font-weight: 600;
}

.post-category {
    color: #f06421;
    font-weight: 600;
}

.post-date {
    color: #f06421;
    font-weight: 500;
}

/* Removed generic span:last-child rule to avoid conflicts with specific classes */

.post-rating {
    color: #f06421;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    color: #f06421;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f06421;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Button Styles - Tối ưu cho landing page */
.btn-toplist {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-toplist.btn-primary {
    background: #f06421;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-toplist.btn-primary:hover {
    background: #e55a1a;
    border-color: #e55a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 100, 33, 0.3);
}

.btn-toplist.btn-outline {
    background: #ffffff;
    color: #f06421;
    border-color: #ffffff;
}

.btn-toplist.btn-outline:hover {
    background: #f06421;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 100, 33, 0.3);
}

/* CTA Section - Tuân thủ color thương hiệu */
.cta-section {
    background: linear-gradient(135deg, #f06421 0%, #e55a1a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - Tuân thủ color thương hiệu */
.footer {
    background: #140000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f06421;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f06421;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}