/* Картки фотоальбомів */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 10px;
}


.albums-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    height: 180px;
    flex: 0 0 310px;
    max-width: 310px;
    margin: 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.albums-grid:only-child,
.albums-grid:has(.albums-card:only-child) {
    justify-content: center;
}


.albums-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


/* Початковий стан карток (невидимі) */
.albums-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Коли картка показується */
.albums-card.show {
    opacity: 1;
    transform: translateY(0);
}


.album-border-green {
    border: 2px solid #4caf50;
    box-shadow: 0 0 12px 2px rgba(76, 175, 80, 0.5);
    animation: epic-glow-green 3s infinite alternate;
}

.album-border-blue {
    border: 2px solid #2196f3;
    box-shadow: 0 0 12px 2px rgba(33, 150, 243, 0.5);
    animation: epic-glow-blue 3s infinite alternate;
}

.album-border-purple {
    border: 2px solid #9c27b0;
    box-shadow: 0 0 12px 2px rgba(156, 39, 176, 0.5);
    animation: epic-glow-purple 3s infinite alternate;
}

/* Анімація для зеленої рамки */
@keyframes epic-glow-green {
    0% {
        box-shadow: 0 0 7px 2px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(76, 175, 80, 0.8);
    }
    100% {
        box-shadow: 0 0 7px 2px rgba(76, 175, 80, 0.4);
    }
}

/* Анімація для синьої рамки */
@keyframes epic-glow-blue {
    0% {
        box-shadow: 0 0 7px 2px rgba(33, 150, 243, 0.4);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(33, 150, 243, 0.8);
    }
    100% {
        box-shadow: 0 0 7px 2px rgba(33, 150, 243, 0.4);
    }
}

/* Анімація для фіолетової рамки */
@keyframes epic-glow-purple {
    0% {
        box-shadow: 0 0 7px 2px rgba(156, 39, 176, 0.4);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(156, 39, 176, 0.8);
    }
    100% {
        box-shadow: 0 0 7px 2px rgba(156, 39, 176, 0.4);
    }
}


.albums-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.albums-icon-wrapper {
    background: #d1f5e0;
    flex: 0 0 35%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.albums-circle {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.albums-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.albums-divider {
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00ffe0, #00c3ff, #00ffe0);
    background-size: 200% 200%;
    border-radius: 2px;
    animation: neon-flow 3s linear infinite;
}

@keyframes neon-flow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.albums-content {
    flex: 1;
    padding: 15px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.albums-label {
    font-size: 0.75em;
    color: #888888;
    margin-bottom: 5px;
}

.albums-heading {
    font-size: 1em;
    font-weight: bold;
    color: #333333;
}

/* Базовий бейдж кількості фото */
.albums-count-badge {
    margin-top: 8px;
    font-size: 0.8em;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 14px;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Friz Quadrata', 'Arial Black', sans-serif; /* Шрифт максимально схожий на WoW */
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.05); /* Базовий прозорий фон */
    border: 1px solid transparent;
}

/* Колір бейджа для Common */
.album-border-green .albums-count-badge {
    color: #4caf50;
    background-color: rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
}

/* Колір бейджа для Rare */
.album-border-blue .albums-count-badge {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.15);
    border-color: #2196f3;
}

/* Колір бейджа для Epic */
.album-border-purple .albums-count-badge {
    color: #9c27b0;
    background-color: rgba(156, 39, 176, 0.15);
    border-color: #9c27b0;
}


@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }

    .albums-card {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }


    .albums-link {
        flex-direction: column;
    }

    .albums-icon-wrapper {
        width: 100%;
        height: 180px;
        margin: 0;
        border-radius: 0;
        background: #d1f5e0;
        display: flex;
        justify-content: center;
        align-items: start;
        position: relative;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .albums-circle {
        width: 100px;
        height: 100px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .albums-icon {
        width: 60%;
        height: 60%;
        object-fit: contain;
    }

    .albums-divider {
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #00ffe0, #00c3ff, #00ffe0);
        animation: neon-flow-horizontal 3s linear infinite;
    }
}

/* Анімація для горизонтальної лінії */
@keyframes neon-flow-horizontal {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}
