@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #000;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/bgsimple.png');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 2rem;
    overflow-x: hidden;
    cursor: url('../images/darkred.png'), auto;
    user-select: none;
    -webkit-user-drag: none;
}

.hidden {
    display: none !important;
}

/* --- Popups --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-overlay.active { display: flex; }
.popup-content {
    background-color: #1a0000;
    border: 3px solid #ff0000;
    padding: 2rem;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px #ff0000;
}
.popup-content h2 { color: #ff0000; margin-top: 0; }
.popup-content input {
    font-family: 'Press Start 2P', cursive;
    width: calc(100% - 20px);
    padding: 10px;
    margin: 1rem 0;
    background-color: #000;
    border: 2px solid #ff0000;
    color: #fff;
    text-align: center;
}
.popup-content input::placeholder {
    text-align: center;
}
.popup-content button {
    font-family: 'Press Start 2P', cursive;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: url('../images/darkred.png'), auto;
    transition: background-color 0.3s;
}
.popup-content button:hover { background-color: #cc0000; }
.error-message { color: #ff4d4d; margin-top: 10px; height: 20px; }

/* --- Dashboard Header --- */
.dashboard-header { text-align: center; margin-bottom: 2rem; }
#clan-logo { max-width: 300px; margin-bottom: 1rem; transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; }
#clan-logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 15px #000000); }
#nickname-header { color: #ff0000; font-size: 2rem; text-shadow: 2px 2px #000; transition: transform 0.3s ease, text-shadow 0.3s ease; }
#nickname-header:hover { transform: scale(1.03); text-shadow: 2px 2px 15px #ff0000; }

/* --- Welcome Card Carousel --- */
.welcome-card-container { background-color: rgba(26, 0, 0, 0.8); border: 3px solid #ff0000; padding: 2rem; margin: 2rem auto; max-width: 900px; }
.welcome-slide { display: none; flex-direction: row; gap: 2rem; align-items: center; }
.welcome-slide.active-slide { display: flex; }
.welcome-text { flex: 2; line-height: 1.6; }
.welcome-media { flex: 1; text-align: center; }
.welcome-media img, .welcome-media video { max-width: 100%; border: 3px solid #ff0000; box-shadow: 0 0 15px #ff0000; height: auto; }

/* MODIFICATION: Added !important to force the override. This will work. */
.welcome-media img.no-border {
    border: none !important;
    box-shadow: none !important;
}

.carousel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid #ff0000; }
.carousel-btn { font-family: 'Press Start 2P', cursive; background-color: #ff0000; color: #fff; border: none; padding: 8px 16px; cursor: url('../images/darkred.png'), auto; transition: background-color 0.3s; font-size: 0.8rem; }
.carousel-btn:hover { background-color: #cc0000; }
.carousel-btn:disabled { background-color: #555; cursor: not-allowed; opacity: 0.7; }
#slide-indicator { font-size: 1rem; color: #ffc4c4; }

/* --- Activities Section --- */
#activities-section h2 { text-align: center; font-size: 1.8rem; color: #ff0000; margin-bottom: 2rem; text-shadow: 2px 2px #000; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.activity-card { background-color: #1a0000; border: 3px solid #ff0000; text-align: center; padding: 1.5rem; cursor: url('../images/darkred.png'), auto; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.activity-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 10px 25px #ff0000; border-color: #ff4d4d; }
.activity-card .card-image { position: relative; width: 100%; height: 200px; margin-bottom: 1rem; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.activity-card img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.activity-card:hover img { transform: scale(1.1); }
.activity-card h3 { color: #ff0000; }
.activity-card p { font-size: 0.8rem; line-height: 1.5; }
.highlight { color: #ff4d4d; }
.checkmark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../images/checkmark.png'); background-size: 50%; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.3s ease; }
.activity-card.completed .checkmark { opacity: 0.7; }
.activity-card.disabled { cursor: not-allowed; opacity: 0.6; filter: grayscale(50%); }
.activity-card.disabled:hover { transform: none; box-shadow: none; border-color: #ff0000; }
.activity-card.disabled:hover img { transform: none; }
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInAnimation 1s ease-in-out forwards; }
@keyframes fadeInAnimation { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
#activities-section { animation-delay: 0.5s; }

/* --- Animated Links --- */
.discord-link,
.faction-link { /* Grouped shared styles */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
    cursor: url('../images/darkred.png'), auto;
}
.discord-link { color: #5865F2; }
.discord-link:hover { transform: scale(1.1); text-shadow: 0 0 10px #5865F2; }

/* Faction link styles */
.faction-link {
    color: #FFD700; 
}
.faction-link:hover { 
    transform: scale(1.1); 
    text-shadow: 0 0 10px #FFD700; 
}

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 768px) {
    body { padding: 1rem; }
    #nickname-header { font-size: 1.5rem; }
    
    .welcome-card-container { padding: 1.5rem; }
    .welcome-slide { flex-direction: column; text-align: center; }
    .welcome-text { order: 1; line-height: 1.8; }
    .welcome-text h2 { font-size: 1.2rem; }
    .welcome-text p { font-size: 0.8rem; }
    .welcome-media { order: 2; width: 100%; margin-top: 1.5rem; }
    
    .popup-content { width: 85%; padding: 1.5rem; }
    .popup-content h2 { font-size: 1.2rem; }
    
    .popup-content input {
        font-size: 16px;
    }
}
