/* ============================================
   MODERN CATEGORY CARDS FOR #RULES SECTION
   ============================================ */

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Category Card */
.category-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(145deg, rgba(31, 31, 50, 0.95), rgba(31, 31, 50, 0.9));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.category-icon-wrapper i {
    color: var(--dark-bg);
    font-size: 1.5rem;
}

.category-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

/* Card Content */
.category-card-content {
    color: var(--text-secondary);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Info List */
.category-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.category-info-list li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Stats Grid */
.category-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(10, 10, 18, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.category-stat-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.category-stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.category-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Community Stats */
.category-community-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-community-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(10, 10, 18, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.category-community-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.category-community-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact List */
.category-contact-list {
    margin-bottom: 1rem;
}

.category-contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-contact-item:last-child {
    border-bottom: none;
}

.category-contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* CTA Button */
.category-cta-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.category-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.category-cta-button:hover::before {
    left: 100%;
}

/* Gallery Previews */
.category-gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 102, 255, 0.2));
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-gallery-item:hover {
    transform: scale(1.05);
}

.category-gallery-count {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .category-card {
        padding: 1.25rem;
    }

    .category-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .category-icon-wrapper i {
        font-size: 1.25rem;
    }

    .category-card-title {
        font-size: 1.1rem;
    }

    .category-stats-grid,
    .category-community-stats {
        grid-template-columns: 1fr;
    }
}