/* 🎨 STYLE CHO WEBSITE HOANGDZ.COM */

/* === RESET & CHUNG === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a2e;
    color: #ffffff;
    overflow-x: hidden;
}

/* === THANH MENU === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* === NÚT BẤM === */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(238, 90, 36, 0.4);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(238, 90, 36, 0.6);
}

/* === TRANG CHỦ / HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #2d1b69 100%);
}

.hero-content {
    z-index: 2;
    position: relative;
}

.title-animate {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
}

.subtitle {
    font-size: 1.3rem;
    color: #b8b8d4;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
    margin-top: 20px;
}

/* Emoji bay bay */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.float-emoji {
    position: absolute;
    bottom: -50px;
    left: var(--x);
    font-size: 2rem;
    animation: floatUp 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === VỀ MÌNH === */
.about {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a4e, #0a0a2e);
}

.about h2, .game-section h2, .gallery h2, .blog h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.card-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #feca57;
}

.about-card p {
    color: #b8b8d4;
}

/* === GAME === */
.game-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a2e, #1a0a3e);
}

.game-section > p {
    color: #b8b8d4;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.score, .timer {
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
}

.btn-game {
    padding: 10px 25px;
    font-size: 1rem;
}

.game-area {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.game-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #b8b8d4;
}

.star {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    animation: starPop 0.3s ease;
    transition: transform 0.1s;
    user-select: none;
}

.star:hover {
    transform: scale(1.3);
}

@keyframes starPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.star-caught {
    animation: starCaught 0.3s ease forwards;
}

@keyframes starCaught {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* === GALLERY === */
.gallery {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #1a0a3e, #0a0a2e);
}

.gallery > p {
    color: #b8b8d4;
    margin-bottom: 30px;
}

/* Ảnh nổi bật */
.featured-photo {
    max-width: 700px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(254, 202, 87, 0.5);
    box-shadow: 0 10px 40px rgba(254, 202, 87, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.featured-photo:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 50px rgba(254, 202, 87, 0.35);
    border-color: #feca57;
}

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

.featured-caption {
    padding: 15px 20px;
}

.featured-caption h3 {
    font-size: 1.3rem;
    color: #feca57;
    margin-bottom: 5px;
}

.featured-caption p {
    color: #b8b8d4;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    background: var(--color);
    border-radius: 20px;
    padding: 30px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-placeholder {
    font-size: 4rem;
    margin-bottom: 10px;
}

.gallery-item p {
    font-weight: bold;
    font-size: 1rem;
}

/* === BLOG === */
.blog {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a2e, #1a1a4e);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.15);
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #48dbfb;
}

.blog-card p {
    color: #b8b8d4;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 5px 0;
    color: #888;
    font-size: 0.9rem;
}

.footer strong {
    color: #feca57;
}

/* === RESPONSIVE - XEM TRÊN ĐIỆN THOẠI === */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .nav-links {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .title-animate {
        font-size: 2rem;
    }

    .highlight {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .game-area {
        height: 300px;
    }

    .game-info {
        gap: 10px;
    }
}
