/*
    COMMUNITY & WALKTHROUGHS PAGE STYLES
*/

/* HERO SECTION */
.hero-community {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('image/banner.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-out;
    z-index: -1;
}

.hero-community::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 29, 0.6);
}

.hero-community .hero-content {
    z-index: 1;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* FEATURED WALKTHROUGH */
.featured-walkthrough-section {
    background: var(--dark-grey);
}

.featured-guide-card {
    display: flex;
    background: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
}

.guide-image {
    flex: 1.2;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-image: url('/image/Hollow\ Knight2.jpg');
}

.guide-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.guide-content h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.guide-stats {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #aaa;
}

.guide-stats span i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* COMMUNITY HUB */
.community-hub-section {
    background: var(--background-color);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hub-card {
    text-decoration: none;
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-10px);
}

.hub-card:hover::before {
    opacity: 0.2;
}

.hub-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.hub-card:hover i {
    transform: scale(1.1);
}

.hub-card.discord {
    background: #5865F2;
}

.hub-card.forums {
    background: var(--primary-color);
}

.hub-card.social {
    background: #1DA1F2;
}

.hub-card h3 {
    font-family: var(--font-primary);
    color: #fff;
}

/* WALKTHROUGH DATABASE */
.walkthrough-database-section {
    background: var(--dark-grey);
}

.search-bar {
    position: relative;
    margin-bottom: 3rem;
}

.search-bar i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #aaa;
}

#walkthrough-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--background-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#walkthrough-search:focus {
    border-color: var(--primary-color);
    outline: none;
}

.walkthrough-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.walkthrough-card {
    background: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--secondary-color);
}

.walkthrough-card:hover {
    transform: scale(1.05);
    border-left-color: var(--primary-color);
}

.walkthrough-card.hidden {
    display: none;
}

.walkthrough-card .game-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    float: left;
    margin-right: 1rem;
}

.walkthrough-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #fff;
}

.walkthrough-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.no-results {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

/* COMMUNITY STATS */
.community-stats-section {
    background-color: var(--background-color);
    padding: 4rem 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: var(--dark-grey);
    padding: 1.5rem;
    border-radius: 10px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #aaa;
}

/* FAQ ACCORDION */
.faq-section {
    background: var(--dark-grey);
}

.accordion {
    max-width: 800px;
    margin: auto;
}

.accordion-item {
    background: var(--background-color);
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #ccc;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

/* SPOTLIGHT CAROUSEL */
.spotlight-section {
    background: var(--background-color);
    overflow: hidden;
}

.spotlight-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.spotlight-card {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 1rem;
    text-align: center;
}

.spotlight-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.spotlight-card h4 {
    color: #fff;
    margin-top: 1rem;
}

.spotlight-card p {
    font-style: italic;
    color: #aaa;
}

.carousel-nav-spotlight {
    text-align: center;
    margin-top: 2rem;
}

.carousel-nav-spotlight button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 5px;
}

.carousel-nav-spotlight button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* GUIDE CATEGORIES */
.guide-categories-section {
    background: var(--dark-grey);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-10px);
}

.category-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* TIP OF THE DAY */
.tip-section {
    background: var(--background-color);
    text-align: center;
}

.tip-box {
    background: var(--dark-grey);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.tip-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    float: left;
    margin-right: 1.5rem;
}

.tip-box p {
    margin: 0;
    font-size: 1.1rem;
    text-align: left;
}

#new-tip-btn {
    margin: auto;
    display: block;
}

/* CODE OF CONDUCT TABS */
.conduct-section {
    background: var(--dark-grey);
}

.tabs-container {
    max-width: 900px;
    margin: auto;
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* UPCOMING EVENTS */
.events-section {
    background: var(--background-color);
}

.events-list {
    list-style: none;
    max-width: 800px;
    margin: auto;
}

.event-item {
    display: flex;
    align-items: center;
    background: var(--dark-grey);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.event-date {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    width: 80px;
    margin-right: 1.5rem;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.event-details p {
    margin: 0;
    color: #aaa;
}

.event-time {
    font-weight: bold;
}

.event-item.live .event-date {
    color: #ff4757;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .featured-guide-card {
        flex-direction: column;
    }

    .spotlight-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: center;
    }

    .event-item {
        display: flex;
        flex-direction: column;
    }
}