/* Theme Styles for Link Vào 12BET */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

/* Container */
.container {
    max-width: 1425px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
}

/* Navigation Desktop */
.nav-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-desktop a:hover {
    color: #ffd700;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.login-btn,
.register-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.login-btn {
    background-color: #ffd700;
    color: #1a237e;
}

.login-btn:hover {
    background-color: #ffec8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.register-btn {
    background-color: #4caf50;
    color: white;
}

.register-btn:hover {
    background-color: #66bb6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation Mobile */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a237e;
    list-style: none;
    padding: 1rem 0;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile li {
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a {
    color: white;
    text-decoration: none;
    display: block;
}

.nav-mobile a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: white;
    min-height: 60vh;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.article-content h1 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h2 {
    color: #0d47a1;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    color: #1565c0;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Post List */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card h2 {
    color: #1a237e;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: inherit;
}

.post-card h2 a:hover {
    color: #0d47a1;
}

.post-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-date {
    color: #999;
    font-size: 0.85rem;
    margin-top: 1rem;
}

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

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

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

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

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

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #1a237e;
}

.pagination a:hover {
    background: #1a237e;
    color: white;
}

.pagination .current {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h1 {
        font-size: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .post-card-content {
        padding: 1rem;
    }
}

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

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

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #1a237e;
}

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

/* Post Meta */
.post-meta {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
}

.featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.page-links span {
    font-weight: bold;
    margin-right: 0.5rem;
}

.page-links a {
    padding: 0.3rem 0.8rem;
    margin: 0 0.2rem;
    background: #1a237e;
    color: white;
    border-radius: 4px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.nav-prev:hover,
.nav-next:hover {
    background: #f0f0f0;
}

/* Tags */
.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    background: #e8eaf6;
    color: #1a237e;
    border-radius: 20px;
    font-size: 0.85rem;
}

.post-tags a:hover {
    background: #1a237e;
    color: white;
}
