/**
 * Champion Synergies Widget Styles
 * Dark theme similar to Fill Items Widget
 */

.champion-synergies-widget {
    width: 100%;
    border-radius: 12px;
}

.champion-synergies-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #f0e6d2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(200, 155, 60, 0.3);
}

.champion-synergies-general-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #c8c8d0;
    font-size: 15px;
}

/* Role Sections */
.synergies-roles-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.synergy-role-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.synergy-role-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.synergy-role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: default;
    transition: background-color 0.2s ease;
    user-select: none;
}

.synergy-role-header .role-header-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.synergy-role-header:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.synergy-role-header .role-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 2px;
    flex-shrink: 0;
}

.synergy-role-header .role-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.synergy-role-header .role-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.synergy-role-header .role-name {
    font-size: 18px;
    font-weight: 600;
    color: #f0e6d2;
    line-height: 1.2;
}

.synergy-role-header .toggle-icon {
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    margin-top: 2px;
    color: #a09b8c;
}

.synergy-role-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.synergy-role-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Header Icons (right side) */
.synergy-role-icons {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
    padding: 2px 0;
}

.champion-synergy-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.champion-synergy-icon {
    width: 64px;
    height: 64px;
    max-width: 128px;
    max-height: 128px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.synergy-role-header .role-description--header {
    margin: 0;
    line-height: 1.4;
    color: #c8c8d0;
    font-size: 14px;
}

/* Champions Grid */
.champion-synergies-grid {
    display: grid;
    gap: 15px;
}

.champion-synergies-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.champion-synergies-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.champion-synergies-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.champion-synergies-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .champion-synergies-grid.columns-5,
    .champion-synergies-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .champion-synergies-grid.columns-5,
    .champion-synergies-grid.columns-4,
    .champion-synergies-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .synergy-role-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .synergy-role-header .role-header-left {
        gap: 6px;
    }
    
    .synergy-role-header .role-icon {
        width: 20px;
        height: 20px;
    }
    
    .synergy-role-header .role-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .champion-synergies-grid {
        grid-template-columns: 1fr;
    }
    
    .champion-synergies-title {
        font-size: 20px;
    }
}

/* Champion Items */
.champion-synergy-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.champion-synergy-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.champion-synergy-image-wrapper {
    position: relative;
    width: 100%;
    /* Icons are square (Data Dragon champion icons) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #1f2937;
}

.champion-synergy-splash {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.champion-synergy-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Shiny hover effect */
.champion-synergy-image-wrapper::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 5;
    pointer-events: none;
    transform: rotate(45deg);
    transition: top 0.5s ease, left 0.5s ease;
}

.champion-synergy-item:hover .champion-synergy-image-wrapper::before {
    top: 150%;
    left: 150%;
}




