/**
 * VN88 Link Mới - Custom Styles
 * Additional styles for VN88 theme
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section enhancements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* Card hover effects */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Section title underline animation */
.section-title {
    position: relative;
}

.section-title::after {
    width: 0;
    animation: expandLine 0.8s ease forwards;
}

@keyframes expandLine {
    to {
        width: 100px;
    }
}

/* Content typography */
.content h2 {
    color: #1a237e;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content h3 {
    color: #0d47a1;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content h4 {
    color: #1565c0;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content ul,
.content ol {
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 10px;
}

/* Form styling */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a237e;
}

/* Social share buttons */
.social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.social-share h3 {
    margin-bottom: 15px;
}

.social-share a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 16px;
    background: #1a237e;
    color: #fff;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-share a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    color: #1a237e;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #1a237e;
}

.breadcrumb span {
    color: #666;
}

/* Related posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-posts h3 {
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.related-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.related-card a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
}

/* Entry meta */
.entry-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9em;
}

.entry-meta span {
    margin-right: 20px;
}

/* Featured image */
.featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

/* Footer enhancements */
footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

.footer-section ul li {
    position: relative;
    padding-left: 20px;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .content h2 {
        font-size: 1.5em;
    }
    
    .content h3 {
        font-size: 1.3em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-share a {
        display: block;
        margin-bottom: 10px;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #764ba2;
    transform: translateY(-5px);
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
}

table {
    font-size: 0.95em;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.highlight-box h3 {
    color: #fff;
}

/* Notice box */
.notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.notice-box.warning {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.notice-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 1s ease;
}

/* Accordion */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-content.active {
    padding: 20px;
    max-height: 500px;
}
