/* ============================================
   TAGS PAGE - Modern Professional Design
   ============================================ */

/* Page Container */
.tags-page {
    padding-top: 20px;
    padding-bottom: 40px;
    background: #0a0a0a;
    min-height: calc(100vh - 200px);
}

/* Page Title */
.tags-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 20px 0;
}

.tags-page-title i {
    color: #1e90ff;
    font-size: 28px;
}

.tags-page-title .title-letter {
    color: #1e90ff;
    font-weight: 800;
    margin-left: 8px;
}

/* ============================================
   ALPHABET NAVIGATION
   ============================================ */

.alphabet-nav-wrapper {
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.alphabet-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8a95a3;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.alphabet-letter:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.alphabet-letter.active {
    color: #1e90ff;
    border-color: #1e90ff;
    background: rgba(30, 144, 255, 0.1);
    font-weight: 700;
}

/* ============================================
   TAGS GRID
   ============================================ */

.tags-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* Tag Card */
.tag-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1e90ff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tag-card:hover::before {
    transform: scaleY(1);
}

.tag-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateX(4px);
}

.tag-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

/* Tag Icon */
.tag-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tag-icon-wrapper i {
    font-size: 18px;
    color: #1e90ff;
    transition: all 0.3s ease;
}

.tag-card:hover .tag-icon-wrapper {
    background: rgba(30, 144, 255, 0.2);
    border-color: rgba(30, 144, 255, 0.4);
}

.tag-card:hover .tag-icon-wrapper i {
    transform: rotate(15deg) scale(1.1);
}

/* Tag Info */
.tag-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tag-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.tag-card:hover .tag-name {
    color: #1e90ff;
}

.tag-count {
    font-size: 13px;
    color: #8a95a3;
    font-weight: 500;
}

/* Tag Arrow */
.tag-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.tag-card-arrow i {
    font-size: 14px;
    color: #8a95a3;
    transition: all 0.3s ease;
}

.tag-card:hover .tag-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.tag-card:hover .tag-card-arrow i {
    color: #1e90ff;
}

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

/* Tablet */
@media (max-width: 991px) {
    .tags-page-title {
        font-size: 28px;
    }

    .tags-page-title i {
        font-size: 24px;
    }

    .tags-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }

    .alphabet-nav {
        gap: 6px;
    }

    .alphabet-letter {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .tags-page {
        padding-top: 12px;
    }

    .tags-page-title {
        font-size: 24px;
        gap: 10px;
        padding: 16px 0;
    }

    .tags-page-title i {
        font-size: 20px;
    }

    .alphabet-nav-wrapper {
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .alphabet-nav {
        gap: 5px;
    }

    .alphabet-letter {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .tags-grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tag-card {
        padding: 14px 16px;
    }

    .tag-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .tag-icon-wrapper i {
        font-size: 16px;
    }

    .tag-name {
        font-size: 15px;
    }

    .tag-count {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .tags-page-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .alphabet-letter {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }

    .tag-card {
        padding: 12px 14px;
    }

    .tag-card-content {
        gap: 12px;
    }

    .tag-name {
        font-size: 14px;
    }
}

/* ============================================
   PAGINATION OVERRIDES
   ============================================ */

.tags-page .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.tags-page .pagination-wrapper .pagination {
    margin: 0;
}

/* Empty State */
.tags-grid-container:empty::after {
    content: 'No tags found';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #8a95a3;
    font-size: 18px;
    font-weight: 500;
}

