/* Base Reset */
body, h1, h2, h3, h4, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Oswald', Arial, sans-serif;
    background: #181a20;
    color: #fff;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: none;
    min-height: unset;
    padding: 0;
}
.hero-content {
    background: rgba(24,26,32,0.7);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.btn-primary {
    display: inline-block;
    background: #4989bd;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #ff3366;
}

/* About Section */
.about-section {
    background: #23263a;
    padding: 4rem 0 3rem 0;
    text-align: center;
}
.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.about-section p {
    font-size: 1.2rem;
    color: #ccc;
}

/* Player Profile Section */
.player-profile-section {
    background: #23263a;
    padding: 4rem 0 3rem 0;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.7fr;
    grid-template-rows: 200px 1fr;
    gap: 30px;
    width: 90vw;
    height: 90vh;
    margin: 0 auto;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  
  
  .avatar {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: #191a1f;
    color: #f6ecd7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);

  }
  
  .idea {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: #191a1f;
    color: #f6ecd7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  
  .news {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    background: #191a1f;
    color: #f6ecd7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;    
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  
  .sidebar {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    background: #191a1f;
    color: #f6ecd7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }


/* Add News Section */
.add-news-section {
    background: #343852;
    padding: 4rem 0 3rem 0;
    text-align: center;
}
.add-news-section form {
    display: flex;
    width: 50%;
    margin: 0 auto;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.add-news-section form input[type="text"],
.add-news-section form textarea {
    width: 100%;
    background: #181a20;
    font-size: 1.2rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
}
.add-news-section form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: #181a20;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.add-news-section form button:hover {
    background: #676c8b;
    cursor: pointer;
}

.add-news-section .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.add-news-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.add-news-section p {
    font-size: 1.2rem;
    color: #ccc;
}

/* News Section */
.news-section {
    background: #181a20;
    padding: 4rem 0 3rem 0;
}
.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.news-item {
    background: #23263a;
    padding: 2rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);

    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    position: relative;
}

.author-link {
    color: #959bad;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', Arial, sans-serif;
}

.toggleBtn {
    color: #959bad;
    padding: 0.5rem 0.0rem 0.5rem 0.5rem;
    margin-left: 0.5rem;
    float: right;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', Arial, sans-serif;
}

.toggleBtn:hover {
    color: #494d5a;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', Arial, sans-serif;
}

.author-link:hover {
    color: #494d5a;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', Arial, sans-serif;
}

.news-item.expanded {
    max-height: 2000px; /* large enough for full content */
}
.news-item .show-more {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: none;
    color: #6cf;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}
.news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.news-item p {
    color: #bbb;
}




/* Team Section */
.team-section {
    background: #23263a;
    padding: 4rem 0 3rem 0;
}
.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.team-member {
    background: #181a20;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    background: #333;
}
.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.team-member a {
    text-decoration: none;
    color: #fff;
}
.team-member a:hover {
    color: #ff005a;
}

.team-member p {
    color: #ff005a;
    font-weight: 600;
}

/* Steam Profile */
.steam-profile {
    background: linear-gradient(135deg, #23242a 0%, #2d2f36 100%);
    border-radius: 12px;
    padding: 32px;
    width: 70%;
    max-width: 70%;
    margin: 40px auto 0 auto;
    color: #f6ecd7;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  }
  
  .steam-profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid #444;
    padding-bottom: 24px;
  }
  
  .steam-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
  }
  
.edit-profil-link {
    text-decoration: none;
    color:rgb(221, 175, 128);
    font-weight: bold;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-left: 10px;
  }
  .edit-profil-link:hover {
    color:rgb(172, 142, 62);
    font-weight: bold;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-left: 10px;
  }
  .steam-player-name {
    font-size: 2.8rem;
    font-weight: bold;
    color: #f6ecd7;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
  }
  
  .steam-player-desc {
    font-size: 1.1rem;
    color: #bdbdbd;
  }
  

  .player-container {
    display: flex;
    flex-direction: row;
    min-height: 50vh;
  }

  .player-main-content {        
    flex: 1;
    padding: 10px;
    background: #181a20;
    /* Optional: add a border to separate from sidebar */

  }

  .player-right-sidebar {
    width: 250px;
    min-height: 50vh;

    background: #181a20;
    
    border-left: 1px solid #424653;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
    right:0 ;
  }


  .player-right-sidebar ul {
    color: #fff;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    padding-left: 0;
  }
  



/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #ff005a 0%, #23263a 100%);
    padding: 3rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-section p {
    color: #fff;
    margin-bottom: 1.5rem;
}

/* Navigation Bar */
.site-header {
    background: #181a20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo a {
    color: #ff005a;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #000;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;

    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
    color: #3388cc;

}

/* Hero Slider */
.hero-slider {
    position: relative;

    margin: 0;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    max-width: none;
}
.slide {
    display: none;
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.5s;
}
.slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
}
.slide img {
    width: 100vw;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.5);
    border-radius: 0;
    display: block;
}
.slide-content {
    position: absolute;
    bottom: 3.5rem;
    left: 3rem;
    top: unset;
    right: unset;
    transform: none;
    color: #fff;
    text-align: left;
    z-index: 3;
    width: 40vw;
    max-width: 600px;
    background: rgba(24,26,32,0.5);
    padding: 2rem 2.5rem 2.5rem 2rem;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
}
.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px #000;
}
.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px #000;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24,26,32,0.7);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s;
}
.slider-arrow:hover {
    background: #ff005a;
}
.slider-arrow.prev {
    left: 2%;
}
.slider-arrow.next {
    right: 2%;
}
.slider-dots {
    position: absolute;
    left: 5.0rem;
    bottom: 3rem;
    transform: none;
    display: flex;
    gap: 0.7rem;
    z-index: 5;
    margin-top: 0.5rem;

}
.dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.dot.active {
    background: #ff005a;
    opacity: 1;
}

/* Pagination */

.pagination-link {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    background: #23272b;
}       
.pagination-link:hover {
    background: #3388cc;
}
.pagination-link-active {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    background:rgb(105, 154, 204);
}


/* Footer */
.site-footer {
    background: #181a20;

    bottom: -85px;
    width: 100%;
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    margin-top: 3rem;
    border-top: 2px solid #23263a;
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand {
    flex: 1 1 200px;
}
.footer-logo {
    color: #3388cc;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.footer-desc {
    color: #bbb;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #3388cc;
}
.footer-social {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.social-icon img {
    width: 32px;
    height: 32px;
    filter: grayscale(1) brightness(0.8);
    transition: filter 0.2s, transform 0.2s;
}
.social-icon:hover img {
    filter: none;
    transform: scale(1.1);
}

/* Connexion */
.connexion {
    background: #181a20;
    padding: 4rem 0 3rem 0;
    display: flex;
    justify-content: center;
}
.connexion-container {
    background: #23263a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin: 0 auto;
    width: 850px;
}

/* Form Styles for Connexion and Registration */
.connexion-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.connexion-btn, .inscription-button {
    align-self: flex-start;
    margin-left: 0;
}

.connexion-container input[type="text"],
.connexion-container input[type="password"] {
    background: #1b1e29;
    color: #bfc4d1;
    border: none;
    border-radius: 4px;
    width: 95%;
    padding: 1.2rem 1rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    outline: none;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
}
.connexion-container input[type="text"]::placeholder,
.connexion-container input[type="password"]::placeholder {
    color: #bfc4d1;
    font-family: 'Oswald', Arial, sans-serif;
    opacity: 0.7;
    font-size: 2.1rem;
}

.connexion-container input[type="date"] {
    background: #1b1e29;
    color: #bfc4d1;
    border: none;
    border-radius: 4px;
    width: 95%;
    padding: 1.2rem 1rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    outline: none;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
}

.connexion-container input[type="date"]::placeholder {
    color: #bfc4d1;
    font-family: 'Oswald', Arial, sans-serif;
    opacity: 0.7;
    font-size: 2.1rem;
}


.connexion-btn {
    width: 300px;
    height: 50px;
    border-radius: 5px;
    border: none;
    transition: all 0.5s ease-in-out;
    font-size: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    float: left;
    display: flex;
    padding: 0.5rem;
    align-items: center;
    background: #a2a6b3;
    color: #ffffff;
  }
  
  

  .connexion-btn:hover {
    box-shadow: 0 0 20px 0px #2e2e2e3a;
  }
  
  .connexion-btn .icon {
    position: absolute;
    height: 40px;
    width: 70px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
  }
  
  .connexion-btn .text {
    transform: translateX(55px);
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 20px;
    font-style: italic;
    text-align: center;
  }
  
  .connexion-btn:hover .icon {
    width: 250px;
  }
  
  .connexion-btn:hover .text {
    transition: all 0.5s;
    opacity: 0;
  }
  
  .connexion-btn:focus {
    outline: none;
  }
  
  .connexion-btn:active .icon {
    transform: scale(0.85);
  }

.connexion-container h2 {
    color: #bfc4d1;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.button-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.admin-news-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 2rem;
}
.admin-news-action a {  
    width: 25%;
    float: left;
    display: block;
    background: #23263a;
    padding: 0.1rem;
    border-radius: 5px;
    text-decoration: none;
    
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
}

.admin-news-action a:hover {
        background: #676c8b;
}



/* Responsive */
@media (max-width: 900px) {
    .news-list, .team-list {
        flex-direction: column;
        align-items: center;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .slide img {
        height: 40vh;
    }
    .slide-content {
        left: 1rem;
        bottom: 2.5rem;
        width: 90vw;
        max-width: 98vw;
        padding: 1.2rem 1.2rem 1.7rem 1.2rem;
    }
    .slide-content h1 {
        font-size: 1.5rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .slider-dots {
        left: 1rem;
        bottom: 1rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
}

@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    .main-nav a {
        width: 100%;
        display: block;
    }
}





