/* Cơ Sở Dữ Liệu Tuồng Huế - Custom Theme */

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #030303 url('/ruyi-pattern.svg') repeat;
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-top: 2px solid #1a1a1a;
    z-index: 9999;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.logo-image {
    width: 170px;
    height:45px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.site-title-large {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFD700;
    font-family: 'Brush Script MT', cursive, 'Segoe Script', cursive;
    margin-top: -2px;
}

.site-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
.main-nav {
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-menu .dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    margin: 10px 0 0 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: white;
    font-size: 0.85rem;
    white-space: normal;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #FFD700;
    padding-left: 25px;
}

/* Submenu (nested dropdown) */
.dropdown-menu li {
    position: relative;
}

.dropdown-menu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #2a2a2a;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0 0 0 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu .has-submenu > a::after {
    content: '›';
    float: right;
    margin-left: 10px;
    font-size: 1.2rem;
    line-height: 1;
}

.submenu a {
    padding: 10px 20px;
    display: block;
    color: white;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.submenu a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #FFD700;
    padding-left: 25px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 800px;
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), 
                url('/backgr-main.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    line-height: 1.8;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
}

/* Feature Cards */
.feature-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.feature-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    /* Placeholder for feature images */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.feature-link:hover {
    color: var(--secondary-color);
}

/* Art Section */
.art-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin: 3rem 0;
}

.art-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.art-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.art-item-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
    /* Placeholder for art images */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #bbb;
}

.art-item-content {
    padding: 1rem;
}

.art-item-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    /* Placeholder for gallery images */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .art-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #565656 0%, #FF8C00 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(134, 134, 134, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(125, 125, 125, 0.5),
                0 3px 10px rgba(0, 0, 0, 0.35);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top i {
    font-size: 20px;
    color: #565656;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 18px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 18px;
    }
}
