/* ========================================================================== */
/* BADGES PAGE - MINIMAL STYLE */
/* ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.9em;
    color: #666;
}


.wiki {
    background-color: #ffffffc2;
    border-radius: 15px;
    color: var(--color-text-dark);
    transform: scale(1.12);
}

.book-img {
    filter: invert(0.2);
}


.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.title-alert {
    background: rgba(255, 203, 31, 0.1); /* Легкий червоний фон */
    border: 1px solid rgba(255, 153, 0, 0.3); /* Червона рамка */
    border-left: 5px solid #ff7300; /* Жирна лінія зліва */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #ffd1d1;
    font-family: 'Nunito-normal', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ========================================================================== */
/* SIDEBAR (МІНІМАЛІСТИЧНИЙ СПРАВА) */
/* ========================================================================== */

.sidebar {
    position: fixed;
    top: 50%;
    right: 85px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    animation: sidebarFadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes sidebarFadeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(27, 27, 27, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link::before {
    content: attr(title);
    position: absolute;
    right: 54px;
    background: rgba(27, 26, 27, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.sidebar-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-link img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    transition: transform 0.3s ease;
}

.sidebar-link:hover img {
    transform: scale(1.15);
}




/* ========================================================================== */
/* BADGES GRID (КАРТКИ) */
/* ========================================================================== */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.badge-card-icon {
    font-size: 3em;
    margin-bottom: 5px;
}

.badge-card-icon img{
    width: 150px;
    height: 150px;
    font-size: 3em;
    margin-bottom: 5px;
}

.badge-card-title {
    font-family: 'Minecraft', monospace;
    font-size: 1.1em;
    color: #ffffff;
}

.badge-card-price {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.9em;
    color: #7bc788;
    background: rgba(123, 199, 136, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(123, 199, 136, 0.3);
}

/* ========================================================================== */
/* BADGES LIST */
/* ========================================================================== */

.badges-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-left: 3px solid #444;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #fff;
    transform: translateX(5px);
}

.badge-icon {
    font-size: 1.4em;
    width: 30px;
    text-align: center;
}

.badge-name {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.05em;
    color: #e0e0e0;
    flex: 1;
}

.badge-item:hover .badge-name {
    color: #ffffff;
}

.badge-standart {
    font-family: 'Minecraft', monospace;
    font-size: 0.9em;
    color: #bdbdbd;
    background: rgba(0,0,0,0.3);
    padding: 13px 10px;
    border-radius: 4px;
    display: fixed;
    align-items: center;
    
}


.badge-preview {
    font-family: 'Minecraft', monospace;
    font-size: 0.9em;
    color: #bdbdbd;
    background: rgba(0,0,0,0.3);
    padding: 0px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.nick p{
    font-family: 'Minecraft', monospace;
    font-size: 0.9em;
    color: #bdbdbd;
    padding: 0 px 0px;
    border-radius: 4px;
    display: flex;
}

.badge-preview img{
    width: 22px;
    height: 22px;

}

.badge-item:hover .badge-preview p{
    color: #e7e7e7;
}


/* ========================================================================== */
/* CUSTOM BADGE */
/* ========================================================================== */

.custom-badge-info {
    padding: 25px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-left: 3px solid #7bc788;
    border-radius: 6px;
    margin-bottom: 40px;
}

.custom-badge-info p {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1em;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.custom-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-examples .badge-preview {
    color: #d6d6d6;
}


/* ========================================================================== */
/* CUSTOM EXAMPLES - HEART ANIMATION */
/* ========================================================================== */

.custom-examples .badge-preview {
    position: relative;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.3s ease;
}

.custom-examples .badge-preview .preview-name {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Іконка також зникає */
.custom-examples .badge-preview img {
    transition: opacity 0.3s ease;
}

/* Сердечко (приховане за замовчуванням) */
.custom-examples .badge-preview::after {
    content: '❤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.1em;
    color: #ff104c;
}

/* Hover ефекти */
.custom-examples .badge-preview:hover {
    background: rgba(255, 100, 100, 0.15);
}

/* Іконка і нік зникають */
.custom-examples .badge-preview:hover img,
.custom-examples .badge-preview:hover .preview-name {
    opacity: 0;
    visibility: hidden;
}

/* Сердечко з'являється */
.custom-examples .badge-preview:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: heartbeat 0.8s ease-in-out infinite;
}

/* Анімація пульсації */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}
/* ========================================================================== */
/* FAQ ACCORDION */
/* ========================================================================== */
.faq-item a {
    color: #acff4c;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.faq-item {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-radius: 6px;
    border-left: 3px solid #444;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #888;
}

.faq-item.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #ffffff;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question-text {
    flex: 1;
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.05em;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question-text,
.faq-item.active .faq-question-text {
    color: #ffffff;
}

.faq-arrow {
    font-size: 0.9em;
    color: #666;
    transition: all 0.3s ease;
    font-family: 'Minecraft', monospace;
}

.faq-item:hover .faq-arrow {
    color: #aaa;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 20px 20px 20px;
    margin-left: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.faq-answer-icon {
    color: #7bc788;
    font-size: 0.9em;
    font-family: 'Minecraft', monospace;
    margin-top: 3px;
}

.faq-answer-text {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.95em;
    color: #aaa;
    line-height: 1.6;
}

.faq-answer-text strong {
    color: #7bc788;
}

.faq-answer-text code {
    background: rgba(0,0,0,0.4);
    padding: 2px 6px;
    border-radius: 4px;
    color: #7bc788;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

/* ========================================================================== */
/* BACK LINK */
/* ========================================================================== */

.back-link {
    display: inline-block;
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.95em;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

/* Планшети */

@media (max-width: 1450px) {
    .sidebar {
        display: none;
    }
}
@media (max-width: 992px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .badge-card {
        padding: 25px 15px;
    }
    
    .badge-card-icon img {
        width: 120px;
        height: 120px;
    }
}

/* Малі планшети */
@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .badge-card {
        padding: 20px 15px;
    }
    
    .badge-card-icon {
        font-size: 2.5em;
    }
    
    .badge-card-icon img {
        width: 100px;
        height: 100px;
    }
    
    .badge-card-title {
        font-size: 0.95em;
    }
    
    .badge-card-price {
        font-size: 0.85em;
        padding: 4px 10px;
    }
    
    /* Badges List */
    .badge-item {
        padding: 10px 15px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .badge-name {
        font-size: 0.95em;
    }
    
    .badge-preview {
        font-size: 0.85em;
        padding: 4px 10px;
    }
    
    .badge-preview img {
        width: 18px;
        height: 18px;
    }
    
    .badge-standart {
        font-size: 0.85em;
        padding: 10px 8px;
    }
    
    /* Custom Badge */
    .custom-badge-info {
        padding: 20px;
    }
    
    .custom-badge-info p {
        font-size: 0.95em;
    }
    
    .custom-examples {
        gap: 8px;
    }
    
    .custom-examples .badge-preview {
        min-width: 100px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .faq-question-text {
        font-size: 0.95em;
    }
    
    .faq-answer-content {
        padding: 5px 15px 15px 15px;
        margin-left: 5px;
    }
    
    .faq-answer-text {
        font-size: 0.9em;
    }
    
    /* Title Alert */
    .title-alert {
        padding: 15px;
        font-size: 0.95em;
    }
}

/* Мобільні пристрої */
@media (max-width: 600px) {
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85em;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    /* Badges Grid - вертикальний список */
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .badge-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .badge-card-icon {
        font-size: 2em;
        margin-bottom: 0;
    }
    
    .badge-card-icon img {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
    
    .badge-card-title {
        flex: 1;
        text-align: left;
        font-size: 1em;
    }
    
    .badge-card-price {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    /* Badges List */
    .badge-item {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .badge-icon {
        font-size: 1.2em;
        width: 25px;
    }
    
    .badge-name {
        font-size: 0.9em;
        min-width: 0;
        flex: 1;
    }
    
    .badge-preview {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .badge-preview img {
        width: 16px;
        height: 16px;
    }
    
    .badge-standart {
        font-size: 0.8em;
        padding: 8px 6px;
    }
    
    .nick p {
        font-size: 0.8em;
    }
    
    /* Custom Badge */
    .custom-badge-info {
        padding: 15px;
    }
    
    .custom-badge-info p {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .custom-examples {
        flex-direction: column;
        gap: 6px;
    }
    
    .custom-examples .badge-preview {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }
    
    /* FAQ */
    .faq-list {
        gap: 6px;
    }
    
    .faq-question {
        padding: 12px;
        gap: 10px;
    }
    
    .faq-question-text {
        font-size: 0.9em;
    }
    
    .faq-arrow {
        font-size: 0.8em;
    }
    
    .faq-answer-content {
        padding: 5px 12px 15px 12px;
        margin-left: 0;
        gap: 8px;
    }
    
    .faq-answer-text {
        font-size: 0.85em;
    }
    
    .faq-item.active .faq-answer {
        max-height: 300px; /* Більше місця для довгих відповідей */
    }
    
    /* Title Alert */
    .title-alert {
        padding: 12px 15px;
        font-size: 0.9em;
        gap: 8px;
    }
    
    /* Back Link */
    .back-link {
        font-size: 0.9em;
        margin-top: 15px;
    }
}

/* Дуже малі екрани */
@media (max-width: 400px) {
    .badges-grid {
        gap: 10px;
    }
    
    .badge-card {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .badge-card-icon img {
        width: 50px;
        height: 50px;
    }
    
    .badge-card-title {
        font-size: 0.9em;
    }
    
    .badge-item {
        padding: 10px 12px;
    }
    
    .badge-name {
        font-size: 0.85em;
    }
    
    .faq-question {
        padding: 10px;
    }
    
    .faq-question-text {
        font-size: 0.85em;
    }
    
    .custom-badge-info {
        padding: 12px;
    }
}