/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: #ffd700;
    margin-right: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffd700 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffd700 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section .display-4 {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    opacity: 0.95;
}

.update-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.update-time i {
    animation: rotate 2s linear infinite;
    color: #ffd700;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 30px;
    color: white;
}

.info-card h5 {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
}

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

/* Price Table Wrapper */
.price-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.table-header h3 {
    margin: 0;
    font-weight: bold;
    font-size: 1.8rem;
}

.table-header i {
    color: #ffd700;
    margin-right: 10px;
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.iframe-container iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Specific heights for different iframes */
.price-table-wrapper:first-of-type .iframe-container iframe {
    height: 1820px;
}

.price-table-wrapper:last-of-type .iframe-container iframe {
    height: 1390px;
}

/* Responsive iframe */
@media (max-width: 1440px) {
    .price-table-wrapper:first-of-type .iframe-container iframe {
        height: auto;
        min-height: 1500px;
    }
    
    .price-table-wrapper:last-of-type .iframe-container iframe {
        height: auto;
        min-height: 1200px;
    }
}

@media (max-width: 768px) {
    .price-table-wrapper:first-of-type .iframe-container iframe {
        min-height: 1200px;
    }
    
    .price-table-wrapper:last-of-type .iframe-container iframe {
        min-height: 1000px;
    }
}

@media (max-width: 576px) {
    .price-table-wrapper:first-of-type .iframe-container iframe {
        min-height: 1000px;
    }
    
    .price-table-wrapper:last-of-type .iframe-container iframe {
        min-height: 800px;
    }
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-section h5 {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #2d3748;
    transform: translateY(-3px);
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-section a[href*="hanagold"] {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.footer-section a[href*="hanagold"]:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
    
    .table-header h3 {
        font-size: 1.3rem;
    }
}

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

.info-card,
.price-table-wrapper {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll to top button (optional) */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}