/* League of Legends Champions Lore Page Styles */

/* Hero Section */
.league-hero-section {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to bottom, var(--background-dark), rgba(10, 10, 10, 0.9));
    overflow: hidden;
    text-align: center;
    /* Additional padding already defined in navbar-fix.css */
}

.league-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Lux_0.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

.league-hero-content {
    max-width: 1200px;
    width: 95%;
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 140, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.league-hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

.league-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #ccc;
}

/* Main Content Styles */
.league-champions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Filters */
.filters {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

#championSearch {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #2c2c2c;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#championSearch:focus {
    outline: none;
    border-color: #01c2cb;
    box-shadow: 0 0 8px rgba(1, 194, 203, 0.6);
}

.filter-section {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: #2c2c2c;
    color: #ccc;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background-color: #333;
    color: #fff;
}

.filter-btn.active {
    background-color: #01c2cb;
    color: #fff;
}

/* Role icons */
.role-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.role-icon.assassin {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmMzk1YiIgZD0iTTEyIDJMOSA1aDZMTTEyIDJ6TTkgNXY0bDMgM2wzLTNWNUg5em0tNiA0bDMgM3YtNkwzIDl6bTE4IDBsLTMtM3Y2bDMtM3ptLTE1IDZsLTMgM2g2bC0zLTN6bTEyIDBsMy0zaDZsLTMgM3ptLTYgMEw5IDE4djRsMy0zbDMgM3YtNGwtMy0zeiIvPjwvc3ZnPg==');
}

.role-icon.fighter {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmOGMwMCIgZD0iTTEyIDJsMyAzSDlsMy0zem02IDRsMyAzdi02bC0zIDN6bS0xMiAwTDMgNXY2bDMtM3pNNyAxNWwtMyAzaDZsLTMtM3ptMTAgMGwzIDNoLTZsMy0zek05IDE4aDZ2NGwtMy0zbC0zIDN2LTR6Ii8+PC9zdmc+');
}

.role-icon.mage {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzlkNGVmZiIgZD0iTTEyIDJsMiA0aDRsLTMgM2wxIDQtNCAyLTQtMiAxLTRMNiA2aDRsMi00ek03IDE4bC00IDRoMThsLTQtNEg3eiIvPjwvc3ZnPg==');
}

.role-icon.marksman {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmYzEwNyIgZD0iTTEyIDJMOSA1aDZMMTIgMnpNNyA3bC01IDVoNWwyIDJoNmwyLTJoNWwtNS01SDd6TTcgMTRsLTIgNyA3LTJWMTRIN3ptMTAgMHY1bDctMi0yLTdoLTV6Ii8+PC9zdmc+');
}

.role-icon.support {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzJjZDllOCIgZD0iTTEyIDJsMyA1SDlsMy01em0wIDdsLTggMmw4IDJsOC0yLTgtMnptLTggM2wzIDhIOWwtMi01bC0zLTN6bTE2IDBsLTMgM2wtMiA1aDJ6TTEwIDE3djVoNHYtNWgtNHoiLz48L3N2Zz4=');
}

.role-icon.tank {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iIzdlYTFkMSIgZD0iTTEyIDJsNiA0djRjMCA0LjQxLTMuNTkgOC04IDhzLTgtMy41OS04LTh2LTRsNi00SDEyeiIvPjwvc3ZnPg==');
}

/* Champions Grid */
.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.champion-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.champion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(1, 194, 203, 0.5);
}

.champion-img-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.champion-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.champion-card:hover .champion-img {
    transform: scale(1.1);
}

.champion-info {
    padding: 1rem;
    text-align: center;
}

.champion-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.champion-role {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.champion-region {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Role badge on champion cards */
.role-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
}

.role-badge.assassin { border-color: #ff395b; }
.role-badge.fighter { border-color: #ff8c00; }
.role-badge.mage { border-color: #9d4eff; }
.role-badge.marksman { border-color: #ffc107; }
.role-badge.support { border-color: #2cd9e8; }
.role-badge.tank { border-color: #7ea1d1; }

.role-badge .role-icon {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(1, 194, 203, 0.2);
    border-radius: 50%;
    border-top-color: #01c2cb;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lore Modal */
.lore-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.lore-modal-content {
    position: relative;
    background-color: #121212;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(1, 194, 203, 0.3);
    animation: modalFadeIn 0.4s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.lore-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lore-header {
    display: flex;
    padding: 2rem;
    background: linear-gradient(to right, #0a0a0a, #1a1a1a);
    position: relative;
}

.lore-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #01c2cb, #9d4eff);
}

#modalChampionImg {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #01c2cb;
    box-shadow: 0 0 15px rgba(1, 194, 203, 0.5);
}

.lore-champion-info {
    margin-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modalChampionName {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #01c2cb;
    margin: 0 0 0.5rem;
    text-shadow: 0 0 10px rgba(1, 194, 203, 0.3);
}

#modalChampionRole, #modalChampionRegion {
    font-size: 1rem;
    color: #888;
    margin: 0.3rem 0;
}

.lore-body {
    padding: 2rem;
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    max-height: 70vh;
    overflow-y: auto;
}

#modalChampionLore {
    margin: 0;
    text-align: justify;
}

/* Champion abilities styling */
.champion-lore-section {
    margin-bottom: 2rem;
}

.champion-lore-section h3,
.champion-abilities h3 {
    font-family: 'Orbitron', sans-serif;
    color: #01c2cb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(1, 194, 203, 0.3);
}

.passive-ability,
.champion-spell {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid;
    transition: transform 0.3s ease;
}

.passive-ability {
    border-color: #ffc107;
}

.champion-spell:nth-child(2) {
    border-color: #ff395b; /* Q ability */
}

.champion-spell:nth-child(3) {
    border-color: #9d4eff; /* W ability */
}

.champion-spell:nth-child(4) {
    border-color: #2cd9e8; /* E ability */
}

.champion-spell:nth-child(5) {
    border-color: #ff8c00; /* R ability */
}

.passive-ability:hover,
.champion-spell:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.3);
}

.passive-ability h4,
.champion-spell h4 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.passive-ability p,
.champion-spell p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .league-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .lore-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .lore-body {
        padding: 1.5rem;
    }
    
    .lore-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .league-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .champion-info {
        padding: 0.5rem;
    }
    
    .champion-name {
        font-size: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .champion-role-icon {
        width: 0.8rem;
        height: 0.8rem;
        top: 0.3rem;
        right: 0.3rem;
    }
    
    .lore-champion-info {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    #modalChampionName {
        font-size: 1.5rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .role-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .league-hero-section h1 {
        font-size: 1.7rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .role-filters {
        justify-content: center;
    }
    
    .lore-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .lore-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}
