/* 
  This file contains styles specific to the home page (index.html).
  These styles were moved from layout.css and components.css to improve modularity.
*/

/* --- Hero Section Layout --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 0 2rem;
    padding-top: 70px; /* Navbar height */
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-content {
    text-align: left;
    max-width: 850px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted-color);
    max-width: 100%;
    margin: 0 0 2rem 0;
}
.hero-actions {
    margin-top: 2rem;
    text-align: center;
}
.hero-edition-info {
    margin-top: 1rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
    font-weight: 300;
}
.server-version {
    color: var(--success-color);
    font-weight: 600;
}
.scroll-down-container {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: bounce-container 2s infinite;
}
.scroll-down-container:hover {
    opacity: 1;
}
.scroll-down-text {
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}
.scroll-down-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(-45deg);
    animation: bounce-arrow 2s infinite; /* Uses a simpler animation */
}

@keyframes bounce-container {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -20px);
    }
    60% {
        transform: translate(-50%, -10px);
    }
}
@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg);
    }
}


/* --- Status Section Layout & Components --- */
.status-section {
    background-color: var(--surface-color);
    padding: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}
.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.status-card {
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    background-color: var(--background-color);
    min-width: 180px;
}
.status-card h4 {
    color: var(--text-muted-color);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.status-card p {
    font-size: 1.25rem;
    font-weight: 600;
}
.status-online { 
    color: var(--success-color); 
}
.status-offline { 
    color: var(--error-color); 
}
.status-loading { 
    color: var(--text-muted-color); 
}
.online-players-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    min-height: 44px; /* Prevents layout shift when players pop in/out */
}
.player-skin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--background-color);
    transition: transform 0.2s ease;
}
.player-skin:hover {
    transform: scale(1.1);
    z-index: 10;
}
.more-players {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    color: var(--text-muted-color);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

/* --- Features Section Layout & Components --- */
.features-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
}
.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 350px;
    max-width: 350px;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.feature-card p {
    color: var(--text-muted-color);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes button to the bottom */
    margin-bottom: 1.5rem;
}


/* --- Join Guide Section Layout & Components --- */
.join-guide-section {
    padding: 2rem 2rem 6rem;
    text-align: center;
}
.join-guide-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.join-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.join-content-container {
    max-width: 950px;
    margin: 0 auto;
}
.join-instructions {
    flex: 1.5;
    min-width: 300px;
    text-align: left;
}
.join-video-placeholder {
    flex: 1;
    min-width: 300px;
    position: relative;
    cursor: pointer;
}
.join-content {
    display: none;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.join-content.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.join-video-placeholder img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: block;
}
.join-video-placeholder::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    opacity: 0.8;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.join-video-placeholder:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}
.join-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.join-content ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-muted-color);
    line-height: 1.8;
}
.join-content ol li {
    margin-bottom: 0.75rem;
}
.join-edition-note {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-bottom: 1.5rem;
    margin-top: -1rem;
    text-align: left;
}
.tab-btn {
    padding: 0.75rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-muted-color);
    border-radius: 999px; /* Stark abgerundet */
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}
.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}


/* --- Community / Join Us Section Layout --- */
.community-section {
    background-color: var(--surface-color);
    padding: 6rem 2rem;
    text-align: center;
}
.community-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.community-section p {
    font-size: 1.25rem;
    color: var(--text-muted-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.join-us {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--background-color);
}
.join-us h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.join-us p {
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}