/*
 * Custom CSS for Gia Vang Theme
 */

/* Additional Styles */

/* ===== LEGACY CATEGORY PAGE STYLES - DISABLED ===== */
/* Using news-category.css instead */
/*
.category-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}
*/

/*
.category-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.category-header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
*/

.category-title-section {
    margin-bottom: 20px;
}

.category-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-breadcrumb {
    font-size: 14px;
    color: #666;
}

.category-breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

.category-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.category-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Category Navigation */
.category-nav {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav-list li {
    margin: 0;
}

.category-nav-list a {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.category-nav-list a:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
}

.category-nav-list li.active a {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.category-nav-list .post-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

.category-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    font-style: italic;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-left .results-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #f8f9fa;
}

.view-btn.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.view-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-thumbnail {
    position: relative;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-thumbnail img {
    transform: scale(1.05);
}

.featured-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.featured-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #e74c3c;
}

.featured-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.featured-meta span {
    display: flex;
    align-items: center;
}

.featured-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Regular Post Items */
.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.post-category {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #e74c3c;
}

.post-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-top: auto;
}

/* List Layout */
.posts-grid.list-layout {
    display: block;
}

.posts-grid.list-layout .post-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 15px;
    height: auto;
}

.posts-grid.list-layout .post-thumbnail {
    height: 120px;
}

.posts-grid.list-layout .post-content {
    padding: 15px 20px 15px 0;
}

/* Pagination */
.category-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.category-pagination .page-numbers {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.category-pagination .page-numbers li {
    margin: 0;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
    display: block;
    padding: 10px 15px;
    background: white;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pagination .page-numbers a:hover {
    background: #e9ecef;
    color: #212529;
}

.category-pagination .page-numbers .current {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-posts-found h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #666;
    margin-bottom: 25px;
}

.back-home-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-page .container {
        padding: 15px;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.8em;
    }
    
    .category-nav-list {
        gap: 10px;
    }
    
    .category-nav-list a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .category-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-right {
        justify-content: space-between;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-thumbnail {
        height: 200px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 1.4em;
    }
    
    .posts-grid.list-layout .post-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .posts-grid.list-layout .post-thumbnail {
        height: 150px;
    }
    
    .posts-grid.list-layout .post-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.5em;
    }
    
    .category-nav-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-nav-list a {
        text-align: center;
    }
    
    .filter-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-options {
        justify-content: center;
    }
    
    .featured-title {
        font-size: 1.3em;
    }
    
    .post-thumbnail {
        height: 150px;
    }
}

/* Footer Styles - VnExpress Style */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

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

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #007cba;
}

.app-links {
    margin-top: 10px;
}

.app-badges {
    margin-bottom: 20px;
}

.app-badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.app-badge.international {
    background: #28a745;
}

.contact-info h5 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-info p {
    margin: 5px 0;
    color: #666;
}

.hotline {
    margin-top: 15px;
    padding: 10px;
    background: #f1f3f4;
    border-radius: 4px;
}

.hotline p {
    margin: 3px 0;
}

.hotline strong {
    color: #007cba;
    font-size: 16px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.newsletter-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.newsletter-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: normal;
}

.newsletter-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
}

.social-login {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-login button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.google-login {
    background: #db4437;
    color: white;
}

.facebook-login {
    background: #4267B2;
    color: white;
}

.social-login button:hover {
    transform: scale(1.1);
}

.social-login span {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.email-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.email-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-btn:hover {
    background: #218838;
}

.terms-note {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.terms-note a {
    color: #ffd700;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.footer-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.company-info p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

.company-info strong {
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007cba;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #666;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.social-icon.facebook {
    background: #4267B2;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.tiktok {
    background: #000;
}

.social-icon:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-section {
        padding: 20px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .social-login {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
}

/* Post Styles */
.post {
    height: fit-content;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #007cba;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-meta a {
    color: #007cba;
    text-decoration: none;
}

.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Widget Styles */
.widget {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

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

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

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

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #007cba;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #005a87;
    color: #fff;
}

/* Form Styles */
.search-form {
    margin-bottom: 2rem;
}

.search-field {
    width: 70%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-submit {
    width: 30%;
    padding: 0.75rem;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-submit:hover {
    background: #005a87;
}

/* Navigation Styles */
.posts-navigation {
    margin: 2rem 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* Comments */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

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

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }