@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    background-image: url('minecraft-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

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

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #4CAF50;
}

.social-icons a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4CAF50;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 30px 0;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 8px;
    flex: 1;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.yellow-title {
    color: #FFD700;
    margin-bottom: 15px;
}

.red-title {
    color: #FF4136;
    margin-bottom: 15px;
}

.green-title {
    color: #4CAF50;
    margin-bottom: 15px;
}

/* Races Section */
.races {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.race-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
}

.race-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* News Section */
.news {
    padding: 50px 0;
}

.news-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.link {
    color: #4CAF50;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Mods Section */
.mods {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mod-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.mod-card:hover {
    transform: translateY(-5px);
}

.mod-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Announcement */
.announcement {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    margin: 30px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-content i {
    font-size: 24px;
    margin-right: 15px;
    color: #FF4136;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav ul li a:hover, .footer-nav ul li a.active {
    color: #4CAF50;
}

.features.small .feature-card {
    padding: 15px;
    font-size: 14px;
}

.features.small h2 {
    font-size: 18px;
}

/* Page Header */
.page-header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 50px 0;
    text-align: center;
    margin-top: 30px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: #cccccc;
}

/* News Page */
.news-page {
    padding: 50px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-page .news-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-page .news-card img {
    height: 200px;
}

.news-page .news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.news-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.news-content ul li {
    margin-bottom: 5px;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
    transition: color 0.3s;
}

.read-more:hover {
    color: #66BB6A;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: rgba(76, 175, 80, 0.3);
}

/* Races Page */
.races-page {
    padding: 50px 0;
}

.race-intro {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.race-intro p {
    margin-bottom: 15px;
}

.race-intro p:last-child {
    margin-bottom: 0;
}

.race-detailed {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.race-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.race-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-header h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    font-size: 28px;
}

.race-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.race-description h3 {
    color: #4CAF50;
    margin: 20px 0 10px;
}

.race-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.race-description ul li {
    margin-bottom: 8px;
}

.race-tips {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.race-tips h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Race Selection */
.race-selection {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.selection-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.step-content code {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Players Page */
.players-categories {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    margin-top: 20px;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.categories-nav a:hover, .categories-nav a.active {
    background-color: #4CAF50;
    color: #ffffff;
}

.players-page {
    padding: 50px 0;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.player-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-avatar {
    position: relative;
    height: 200px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

.admin-badge {
    background-color: #FF4136;
}

.youtube-badge {
    background-color: #FF0000;
}

.streamer-badge {
    background-color: #B10DC9;
}

.newbie-badge {
    background-color: #FFDC00;
    color: #111111;
}

.player-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.player-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.player-role {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 15px;
}

.player-race {
    margin-bottom: 15px;
}

.player-race span {
    color: #aaaaaa;
}

.player-stats {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    color: #aaaaaa;
    font-size: 14px;
}

.stat i {
    margin-right: 5px;
}

.player-bio {
    margin-bottom: 15px;
    flex-grow: 1;
}

.player-projects, .player-stream-schedule {
    margin-bottom: 15px;
    font-size: 14px;
}

.player-projects span, .player-stream-schedule span {
    color: #aaaaaa;
}

.player-socials {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.player-socials a {
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s;
}

.player-socials a:hover {
    color: #4CAF50;
}

/* Join Us Section */
.join-us {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.join-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.join-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    background-color: #7289DA;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.discord-button i {
    margin-right: 10px;
}

.discord-button:hover {
    background-color: #5f73bc;
}

.server-ip {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: inline-block;
}

.server-ip span {
    color: #aaaaaa;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .races-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mods-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .race-content {
        grid-template-columns: 1fr;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .races-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .categories-nav {
        flex-direction: column;
    }
    
    .categories-nav a {
        margin: 3px 0;
    }
}