body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a1428; 
    color: #f0e6d2; 
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    border-bottom: 2px solid #c8aa6e; 
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* --- NEW: RIME Team Branding --- */
.team-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    /* This adds an icy cyan glow to the logo to match your art! */
    box-shadow: 0 0 20px rgba(10, 200, 185, 0.6); 
    border: 2px solid #0ac8b9;
}

h1 {
    color: #c8aa6e;
    margin: 0; /* Changed from margin-bottom to 0 for better alignment */
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.strategy-selector select {
    background-color: #1e2328;
    color: #c8aa6e;
    border: 1px solid #c8aa6e;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit {
    background-color: #1e2328;
    color: #0ac8b9;
    border: 1px solid #0ac8b9;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-edit:hover, .btn-edit.active {
    background-color: #0ac8b9;
    color: #0a1428;
}

.desc-text {
    color: #a09b8c;
    font-style: italic;
    margin-top: 15px;
}

/* The Grid */
.draft-board {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.role-card {
    background-color: #1e2328;
    border: 1px solid #c8aa6e;
    border-top: 4px solid #c8aa6e;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.role-card h2 {
    text-align: center;
    margin-top: 0;
    font-size: 20px;
    color: #f0e6d2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 14px;
    color: #a09b8c;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.champ-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* List Items & Images */
.champ-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #0a1428;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid #0ac8b9; 
    font-weight: bold;
    position: relative;
}

.champ-list.bans li {
    border-left: 3px solid #e22c2c; 
    color: #a09b8c; 
}

.champ-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #c8aa6e;
    object-fit: cover;
}

/* --- EDIT MODE STYLES --- */
.delete-btn {
    position: absolute;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    color: #e22c2c;
    font-size: 16px;
    display: none; /* Hidden by default */
}

.edit-mode .delete-btn {
    display: block; /* Show when in edit mode */
}

.add-champ-form {
    display: none; /* Hidden by default */
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.edit-mode .add-champ-form {
    display: flex; /* Show when in edit mode */
}

.add-champ-form input {
    flex: 1;
    padding: 5px;
    background: #0a1428;
    border: 1px solid #333;
    color: white;
    border-radius: 3px;
}

.add-champ-form button {
    background: #c8aa6e;
    border: none;
    color: #0a1428;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    padding: 0 10px;
}

/* --- NEW: Strategy Management Buttons --- */
.strat-management {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-manage {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-manage.new {
    color: #0ac8b9;
}

.btn-manage.new:hover {
    color: #fff;
    text-shadow: 0 0 5px #0ac8b9;
}

.btn-manage.delete {
    color: #e22c2c;
}

.btn-manage.delete:hover {
    color: #fff;
    text-shadow: 0 0 5px #e22c2c;
}

/* Make the description look clickable */
#strategy-desc {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

#strategy-desc:hover {
    background-color: rgba(200, 170, 110, 0.1);
}

/* --- NEW: Active Draft Dashboard --- */
.active-draft-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.flex-picks-container, .locked-team-container {
    background-color: #1e2328;
    border: 1px solid #c8aa6e;
    border-radius: 8px;
    padding: 15px;
}

.flex-picks-container {
    flex: 1;
}

.locked-team-container {
    flex: 3;
}

.active-draft-panel h3 {
    margin-top: 0;
    color: #f0e6d2;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.flex-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.locked-team {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
}

.locked-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a09b8c;
    font-weight: bold;
    font-size: 12px;
}

.locked-slot img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #0ac8b9;
    margin-bottom: 5px;
    box-shadow: 0 0 10px rgba(10, 200, 185, 0.4);
}

.empty-slot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px dashed #333;
    margin-bottom: 5px;
}

/* Action Buttons Container for Lists */
.champ-actions {
    position: absolute;
    right: 10px;
    display: flex;
    gap: 8px;
}

.btn-lock {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: 0.2s;
}

.btn-lock:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Hide Lock buttons in edit mode to keep it clean */
.edit-mode .btn-lock {
    display: none; 
}

/* --- UPDATED: Cleaner Tier List Tags --- */
.tier-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    
    /* NEW: A blocky, clean esports font */
    font-family: 'Arial Black', 'Segoe UI Black', Impact, sans-serif; 
    font-size: 13px;
    
    /* NEW: Unified, crisp dark color for all letters */
    color: #0a1428; 
    margin-right: 8px;
    
    /* Replaced heavy shadows with a very subtle, clean border */
    border: 1px solid rgba(0, 0, 0, 0.2); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* NEW: Flat, vibrant colors instead of messy gradients */
/* --- UPDATED: Tier List Colors --- */
.tier-S { background-color: #ff5858; } /* Vibrant Red */
.tier-A { background-color: #ffb443; } /* Vibrant Orange */
.tier-B { background-color: #f6d365; } /* Vibrant Gold */
.tier-C { background-color: #85e085; } /* Vibrant Green */
.tier-D { background-color: #8cb4ff; } /* Vibrant Blue */

.tier-select {
    padding: 5px;
    background: #1e2328;
    border: 1px solid #c8aa6e;
    color: #f0e6d2;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Arial Black', sans-serif; /* Match the dropdown font too */
}

/* --- NEW: Editable Tier Dropdown --- */
.tier-edit-select {
    font-family: 'Arial Black', 'Segoe UI Black', Impact, sans-serif;
    font-size: 13px;
    color: #0a1428;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px;
    margin-right: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    outline: none;
    text-align: center;
    /* Removes the default dropdown arrow to keep it looking like a badge */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* --- NEW: Patch Notes Modal --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 40, 0.85); /* Darkened background */
    z-index: 1000; /* Stays on top of everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Fancy blur effect */
}

.modal-content {
    background-color: #1e2328;
    border: 2px solid #0ac8b9;
    box-shadow: 0 0 20px rgba(10, 200, 185, 0.4);
    border-radius: 8px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    color: #0ac8b9;
    margin-top: 0;
    border-bottom: 1px solid #c8aa6e;
    padding-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.commit-item {
    border-left: 3px solid #c8aa6e;
    background-color: #0a1428;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 4px;
}

.commit-date {
    font-size: 12px;
    color: #a09b8c;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.commit-msg {
    font-size: 15px;
    color: #f0e6d2;
    line-height: 1.4;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Shrink the header a bit to save screen space */
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    h1 {
        font-size: 24px;
    }

    /* 2. Stack the buttons and dropdown menus vertically */
    .strat-management, .header-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn-manage, .btn-edit, .strategy-selector select {
        width: 100%; /* Make buttons full width for easy tapping */
        margin-bottom: 5px;
        box-sizing: border-box;
    }

    /* 3. Stack the Active Draft Panel (Flex and Locked lists) */
    .active-draft-panel {
        flex-direction: column;
    }

    /* Let the locked champions wrap to a second line instead of squishing */
    .locked-team {
        flex-wrap: wrap;
        height: auto;
        gap: 15px;
        padding: 10px 0;
    }

    /* 4. The biggest change: Stack the 5 Draft Board columns vertically */
    .draft-board {
        flex-direction: column;
    }

    .role-card {
        width: 100%; /* Take up the full screen width */
        box-sizing: border-box;
    }

    /* 5. Make sure the Patch Notes popup fits on a phone screen */
    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 10px;
    }
}