/* Base styles */
body {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    padding: 1rem;
}

/* Navigation styles */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(45deg, #4ADE80, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero card styles */
.hero-card {
    position: relative;
    transition: transform 0.2s;
    cursor: pointer;
}

.hero-card:hover {
    transform: scale(1.05);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.hero-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.hero-name {
    font-size: 0.875rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-rate {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Recommendation tree styles */
#recommendation-tree {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.next-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
    margin-left: 1.5rem;
}

.third-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
    margin-left: 1.5rem;
}

/* Hero slot styles */
.hero-slot {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-slot:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-slot.empty::after {
    content: "+";
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Faction toggle container styles */
.faction-toggle-container {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
}

.faction-icon {
    display: inline-block;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Team status label styles */
.team-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.team-status.radiant {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.team-status.dire {
    background-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Teams container styles */
.teams-container {
    width: 380px;
    background: rgba(17, 24, 39, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-right: 2rem;
}

/* Team section styles */
.team-section {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-section.active {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

/* Radiant team styles */
.team-section.active.radiant {
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2),
                0 0 15px rgba(74, 222, 128, 0.15);
}

.team-section.active.radiant::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.3), transparent 50%);
    pointer-events: none;
}

/* Dire team styles */
.team-section.active.dire {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2),
                0 0 15px rgba(239, 68, 68, 0.15);
}

.team-section.active.dire::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.3), transparent 50%);
    pointer-events: none;
}

/* Inactive team section styles */
.team-section.inactive {
    opacity: 0.85;
}

.recommendation-container {
    flex: 1;
    min-height: 600px;
    background: rgba(17, 24, 39, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.hero-slot-small {
    width: 90px;
    height: 54px;
    margin: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
}

.hero-slot-small:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-slot-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px;
    font-size: 0.8em;
    text-align: center;
    backdrop-filter: blur(4px);
}

.team-label {
    font-size: 1.2em;
    font-weight: 600;
    margin: 1rem 0;
    color: #e2e8f0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Tree visualization styles */
.link {
    fill: none;
    stroke: rgba(148, 163, 184, 0.4);
    stroke-width: 2px;
    transition: stroke 0.2s ease-in-out;
}

.node:hover .link {
    stroke: rgba(59, 130, 246, 0.6);
}

.hero-node {
    fill: rgba(30, 41, 59, 0.8);
    stroke: rgba(148, 163, 184, 0.4);
    stroke-width: 2px;
    transition: all 0.2s ease-in-out;
}

.hero-node:hover {
    stroke: rgb(59, 130, 246);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* Header styles */
.header {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    position: relative;
}

.header p {
    color: #94a3b8;
    font-size: 1.1rem;
    position: relative;
}

/* Faction colors */
.faction-radiant {
    color: #4ade80 !important;  /* Green color for Radiant */
}

.faction-dire {
    color: #ef4444 !important;  /* Red color for Dire */
}

/* Footer styles */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Technology stack icons */
.tech-stack-icon {
    font-size: 1.5rem;
    color: #9CA3AF;
    transition: color 0.2s ease-in-out;
}

.tech-stack-icon:hover {
    color: #FFFFFF;
}

/* Hero picker overlay */
.radiant-picked {
    color: #4ade80; /* Green color for Radiant */
    font-weight: bold;
}

.dire-picked {
    color: #ef4444; /* Red color for Dire */
    font-weight: bold;
}