/* Основные стили для страницы создания */
.createIntro {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #f0f0f0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Сетка карточек с руководствами */
.guidesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Карточка руководства как ссылка */
.guideCard {
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guideCard:hover {
    transform: scale(1.05); /* Немного увеличиваем */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Добавляем тень */
}



/* Заголовок карточки */
.guideCard h3 {
    color: #aaffaa;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transition: text-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.guideCard:hover h3 {
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* Текст карточки */
.guideCard p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.guideCard:hover p {
    color: #ffffff;
}

/* Подсказка на карточке */
.cardHint {
    font-size: 0.85rem;
    color: rgba(255, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}



/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guideCardWrapper  {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.guideCardWrapper:nth-child(1) { animation-delay: 0.1s; }
.guideCardWrapper:nth-child(2) { animation-delay: 0.2s; }
.guideCardWrapper:nth-child(3) { animation-delay: 0.3s; }
.guideCardWrapper:nth-child(4) { animation-delay: 0.4s; }

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .guidesGrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guideCard {
        padding: 20px 15px;
    }

    .guideCard h3 {
        font-size: 1.3rem;
    }

    .cardHint {
        font-size: 0.75rem;
    }


}

@media (max-width: 480px) {
    .createIntro {
        font-size: 1rem;
        margin: 20px 15px;
    }

    .guideCard {
        margin: 0 10px;
    }


}

/* Дополнительные эффекты для фокуса для доступности */
.guideCard:focus-visible {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

/* Стили для посещенных ссылок */
.guideCard:visited{
    opacity: 0.9;
}
