/* Terraforming Mars: Ares Expedition - Responsive Tracker Styles */

.tmae-tracker {
    background-color: #333333;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tmae-tracker h3 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Corporation container - responsive flex grid */
.tmae-corporation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Corporation card */
.tmae-corporation-card {
    background: #444444;
    border-radius: 8px;
    width: 240px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

/* Unplayed corporation cards */
.tmae-corporation-card.not-played {
    background-color: #222222;
    opacity: 0.2;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.tmae-corporation-card.not-played:hover {
    opacity: 0.7;
    background-color: #2b2b2b;
}

.tmae-corporation-card.not-played .tmae-corporation-content {
    background-color: #111111;
    transition: background-color 0.3s ease;
}

.tmae-corporation-card.not-played:hover .tmae-corporation-content {
    background-color: #1a1a1a;
}

/* Logo header */
.tmae-corporation-logo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Corporation content area */
.tmae-corporation-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #444444;
    flex: 1;
}

/* Corporation name */
.tmae-corporation-name {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Ability description */
.tmae-corporation-ability {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 0.8em;
    color: #dddddd;
    background-color: #222222;
    border-radius: 5px;
    overflow: hidden;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

/* Wins and Losses */
.tmae-win-loss-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.tmae-win-loss-item {
    flex: 1;
    text-align: center;
    padding: 5px 10px;
    background-color: #222222;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Difficulty bar */
.tmae-difficulty-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 10px auto;
    padding: 5px;
    background-color: #444444;
    border-radius: 10px;
}

/* Difficulty levels */
.tmae-difficulty-level {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    font-size: 0.75em;
    font-weight: bold;
    color: #cccccc;
    border-radius: 5px;
    background-color: #555555;
    opacity: 0.5;
}

.tmae-difficulty-level.achieved {
    color: #ffffff;
    opacity: 1;
}

.tmae-difficulty-level.beginner.achieved {
    background-color: #4caf50;
}

.tmae-difficulty-level.expert.achieved {
    background-color: #9a6eff;
}

.tmae-difficulty-level.nightmare.achieved {
    background-color: #f44336;
}

/* Tier dots */
.tmae-tier-dots {
    display: flex;
    justify-content: space-evenly;
    gap: 3px;
    margin-top: 5px;
}

.tmae-tier-number {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #555555;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65em;
    font-weight: bold;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tmae-tier-number.active {
    background-color: #17bafd;
    border-color: #ffffff;
}

/* Video link */
.tmae-video-link,
.tmae-video-placeholder {
    height: 20px;
    display: block;
    text-align: center;
    color: #17bafd;
    text-decoration: none;
    margin-top: auto;
    padding-top: 10px;
    line-height: 20px;
}

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

/* OBS overlay link */
.tmae-obs-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #555555;
}

.tmae-obs-link a {
    color: #888888;
    font-size: 0.85em;
    text-decoration: none;
}

.tmae-obs-link a:hover {
    color: #17bafd;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .tmae-corporation-card {
        width: 100%;
        max-width: 340px;
    }

    .tmae-difficulty-level {
        font-size: 0.7em;
        padding: 4px 2px;
    }

    .tmae-tier-number {
        width: 16px;
        height: 16px;
        font-size: 0.65em;
    }
}
