/* Home Page - Góc sáng tạo & Góc thư giãn Sections */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Common Section Styles */
.creative-corner-section,
.relax-corner-section {
    padding: 4rem 0;
    position: relative;
}

.creative-corner-section {
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.relax-corner-section {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Creative Grid */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Creative Cards */
.creative-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.creative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-color, #ff6b9d), #4ecdc4);
}

.poetry-card {
    --card-color: #ff6b9d;
}

.story-card {
    --card-color: #4ecdc4;
}

.essay-card {
    --card-color: #ffd93d;
}

.creative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
}

.card-category {
    background: linear-gradient(135deg, var(--card-color), #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.card-author {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.card-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.card-excerpt .poem-line {
    margin: 0.3rem 0;
    font-style: italic;
}

.card-excerpt p {
    margin: 0;
}

.card-link {
    display: inline-block;
    color: var(--card-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateX(5px);
    color: #764ba2;
}

/* Relax Corner - Minigame Grid */
.relax-corner-section .minigame-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    justify-items: center;
}

/* Character Decoration */
.relax-corner-section .character-decoration {
    text-align: center;
    margin: 2rem 0;
}

.relax-corner-section .cute-character {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.relax-corner-section .speech-bubble {
    display: inline-block;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    font-weight: 600;
    color: #2d3436;
    position: relative;
}

.relax-corner-section .speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .section-icon {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .creative-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .creative-card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .card-excerpt {
        min-height: auto;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .relax-corner-section .minigame-wall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-items: center;
        padding: 0 1rem;
    }

    .relax-corner-section .minigame-bubble {
        width: 140px;
        height: 140px;
    }

    .relax-corner-section .bubble-icon {
        font-size: 2.5rem;
    }

    .relax-corner-section .minigame-bubble h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .relax-corner-section .bubble-btn {
        padding: 5px 14px;
        font-size: 0.8rem;
    }

    .view-all-btn {
        padding: 0.9rem 1.6rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-basis: 100%;
        text-align: center;
    }

    .section-icon {
        font-size: 1.8rem;
    }

    .creative-card {
        padding: 1.2rem;
    }

    .relax-corner-section .minigame-wall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        justify-items: center;
        padding: 0 0.5rem;
    }

    .relax-corner-section .minigame-bubble {
        width: 130px;
        height: 130px;
    }

    .relax-corner-section .bubble-icon {
        font-size: 2.2rem;
        margin-bottom: 0.2rem;
    }

    .relax-corner-section .minigame-bubble h3 {
        font-size: 0.85rem;
        line-height: 1.2;
        margin: 0.2rem 0;
    }

    .relax-corner-section .bubble-btn {
        padding: 4px 12px;
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }
}