/* ==========================================
   ALL-UPDATES.CSS - All Updates Page Styles
   Purple Theme - Responsive - Same Row Structure
   LARGER READABLE FONTS ON ALL DEVICES
   ========================================== */

/* CSS Variables */
:root {
    --primary-purple: #7c3aed;
    --dark-purple: #5b21b6;
    --darker-purple: #4c1d95;
    --light-purple: #ede9fe;
    --lighter-purple: #f5f3ff;
    --primary-gradient: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ==========================================
   PAGE BANNER - COMPACT
   ========================================== */
.page-banner {
    background: var(--primary-gradient);
    padding: 25px 0;
    text-align: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.breadcrumb-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.88em;
}

.breadcrumb-banner a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-banner a:hover {
    color: white;
}

.breadcrumb-banner span {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   PAGE CONTENT
   ========================================== */
.page-content {
    padding: 30px 0 50px;
    background: var(--lighter-purple);
}

.page-content .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   STATS SECTION - ALWAYS IN ROW
   ========================================== */
.stats-section {
    margin-bottom: 25px;
}

.stats-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
}

.stat-pill {
    background: white;
    padding: 12px 22px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--light-purple);
    transition: var(--transition);
    flex-shrink: 0;
}

.stat-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-purple);
}

.stat-icon {
    font-size: 1.4rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-info strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.2;
}

.stat-info span {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ==========================================
   UPDATES SECTION
   ========================================== */
.updates-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Section Header */
.section-header {
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--lighter-purple) 0%, var(--light-purple) 100%);
    border-bottom: 2px solid #ddd6fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .page-info {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ==========================================
   UPDATES LIST - ALWAYS SAME ROW STRUCTURE
   ========================================== */
.updates-list {
    padding: 0;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
    text-decoration: none;
    flex-wrap: nowrap;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: var(--lighter-purple);
    padding-left: 26px;
}

/* Category Badge - Fixed Width */
.cat-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: white;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

/* Update Title - Flexible, Can Wrap to 2-3 lines */
.update-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2563eb;
    line-height: 1.5;
    transition: var(--transition);
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.update-item:hover .update-title {
    color: #1d4ed8;
}

/* Tags - Fixed */
.update-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tag-small {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tag-new {
    background: #fef3c7;
    color: #b45309;
}

.tag-live {
    background: #fee2e2;
    color: #b91c1c;
}

.tag-state {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Date - Fixed Width */
.update-date {
    font-size: 0.78rem;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 75px;
    text-align: right;
    white-space: nowrap;
}

/* Arrow - Moves Top to Bottom on Hover */
.update-arrow {
    color: #ddd6fe;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.update-item:hover .update-arrow {
    color: var(--primary-purple);
    transform: translateY(3px);
}

/* ==========================================
   NO UPDATES
   ========================================== */
.no-updates {
    text-align: center;
    padding: 70px 25px;
}

.no-updates-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
}

.no-updates h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #4b5563;
    margin-bottom: 10px;
}

.no-updates p {
    color: #9ca3af;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.btn-home {
    display: inline-block;
    padding: 13px 32px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.3);
}

/* ==========================================
   PAGINATION - WITH FULL TEXT
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 22px;
    background: var(--lighter-purple);
    border-top: 2px solid #ddd6fe;
    flex-wrap: wrap;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: white;
    color: #4b5563;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid #ddd6fe;
    text-decoration: none;
    white-space: nowrap;
}

.pg-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.pg-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Number buttons */
.pg-btn.pg-num {
    min-width: 42px;
}

/* First, Prev, Next, Last buttons */
.pg-btn.pg-first,
.pg-btn.pg-prev,
.pg-btn.pg-next,
.pg-btn.pg-last {
    padding: 10px 18px;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE - TABLET (1024px)
   ========================================== */
@media (max-width: 1024px) {
    .page-content .container {
        padding: 0 18px;
    }
    
    .stat-pill {
        padding: 10px 18px;
    }
    
    .stat-info strong {
        font-size: 1.1rem;
    }
    
    .update-item {
        padding: 13px 18px;
        gap: 12px;
    }
    
    .update-title {
        font-size: 0.93rem;
    }
    
    .update-date {
        min-width: 70px;
        font-size: 0.76rem;
    }
    
    .pg-btn {
        padding: 9px 14px;
        font-size: 0.82rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 9px 16px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL TABLET (850px)
   ========================================== */
@media (max-width: 850px) {
    .page-banner {
        padding: 22px 0;
    }
    
    .page-banner h2 {
        font-size: 1.45rem;
    }
    
    .page-banner p {
        font-size: 0.88rem;
    }
    
    .page-content {
        padding: 25px 0 40px;
    }
    
    .stats-pills {
        gap: 12px;
    }
    
    .stat-pill {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-info strong {
        font-size: 1.05rem;
    }
    
    .stat-info span {
        font-size: 0.72rem;
    }
    
    .section-header {
        padding: 14px 18px;
    }
    
    .section-header h3 {
        font-size: 0.95rem;
    }
    
    .section-header .page-info {
        font-size: 0.78rem;
    }
    
    .update-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .cat-badge {
        padding: 4px 8px;
        font-size: 0.62rem;
        min-width: 45px;
    }
    
    /* TITLE - READABLE */
    .update-title {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tag-small {
        padding: 3px 6px;
        font-size: 0.58rem;
    }
    
    .update-date {
        font-size: 0.72rem;
        min-width: 65px;
    }
    
    .update-arrow {
        font-size: 0.92rem;
    }
    
    /* PAGINATION */
    .pagination {
        padding: 18px 15px;
        gap: 6px;
    }
    
    .pg-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 8px 14px;
    }
    
    .pg-btn.pg-num {
        min-width: 38px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (680px)
   ========================================== */
@media (max-width: 680px) {
    .page-banner {
        padding: 18px 0;
    }
    
    .page-banner h2 {
        font-size: 1.3rem;
    }
    
    .page-banner p {
        font-size: 0.85rem;
    }
    
    .breadcrumb-banner {
        font-size: 0.82em;
        gap: 8px;
        margin-top: 10px;
    }
    
    .page-content {
        padding: 20px 0 35px;
    }
    
    .page-content .container {
        padding: 0 12px;
    }
    
    .stats-section {
        margin-bottom: 20px;
    }
    
    .stats-pills {
        gap: 10px;
    }
    
    .stat-pill {
        padding: 8px 14px;
        gap: 8px;
        border-radius: 25px;
    }
    
    .stat-icon {
        font-size: 1.1rem;
    }
    
    .stat-info strong {
        font-size: 1rem;
    }
    
    .stat-info span {
        font-size: 0.7rem;
    }
    
    .updates-section {
        border-radius: var(--radius-md);
    }
    
    .section-header {
        padding: 12px 14px;
    }
    
    .section-header h3 {
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .section-header .page-info {
        font-size: 0.75rem;
    }
    
    .update-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .update-item:hover {
        padding-left: 18px;
    }
    
    .cat-badge {
        padding: 4px 8px;
        font-size: 0.6rem;
        min-width: 42px;
        border-radius: 4px;
    }
    
    /* TITLE - LARGE & CLEAR */
    .update-title {
        font-size: 0.92rem;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .update-tags {
        gap: 5px;
    }
    
    .tag-small {
        padding: 3px 6px;
        font-size: 0.56rem;
    }
    
    .update-date {
        font-size: 0.72rem;
        min-width: 62px;
    }
    
    .update-arrow {
        font-size: 0.9rem;
    }
    
    /* PAGINATION - FULL TEXT */
    .pagination {
        padding: 16px 12px;
        gap: 6px;
    }
    
    .pg-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 8px 14px;
    }
    
    .pg-btn.pg-num {
        min-width: 36px;
        padding: 8px 10px;
    }
    
    .no-updates {
        padding: 50px 20px;
    }
    
    .no-updates-icon {
        font-size: 3rem;
    }
    
    .no-updates h3 {
        font-size: 1.15rem;
    }
    
    .no-updates p {
        font-size: 0.9rem;
    }
    
    .btn-home {
        padding: 11px 26px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (500px)
   ========================================== */
@media (max-width: 500px) {
    .page-banner {
        padding: 15px 0;
    }
    
    .page-banner h2 {
        font-size: 1.2rem;
    }
    
    .page-banner p {
        font-size: 0.8rem;
    }
    
    .breadcrumb-banner {
        font-size: 0.78em;
    }
    
    .page-content .container {
        padding: 0 10px;
    }
    
    .stat-pill {
        padding: 7px 12px;
        gap: 7px;
    }
    
    .stat-icon {
        font-size: 1rem;
    }
    
    .stat-info strong {
        font-size: 0.95rem;
    }
    
    .stat-info span {
        font-size: 0.65rem;
    }
    
    .section-header {
        padding: 10px 12px;
    }
    
    .section-header h3 {
        font-size: 0.88rem;
    }
    
    .section-header .page-info {
        font-size: 0.72rem;
    }
    
    .update-item {
        padding: 11px 12px;
        gap: 8px;
    }
    
    .cat-badge {
        padding: 3px 6px;
        font-size: 0.58rem;
        min-width: 38px;
    }
    
    /* TITLE - STILL LARGE */
    .update-title {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tag-small {
        padding: 2px 5px;
        font-size: 0.54rem;
    }
    
    .update-date {
        font-size: 0.7rem;
        min-width: 58px;
    }
    
    .update-arrow {
        font-size: 0.88rem;
    }
    
    /* PAGINATION - FULL TEXT VISIBLE */
    .pagination {
        padding: 14px 10px;
        gap: 5px;
    }
    
    .pg-btn {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 7px 12px;
    }
    
    .pg-btn.pg-num {
        min-width: 34px;
        padding: 7px 8px;
    }
}

/* ==========================================
   RESPONSIVE - VERY SMALL (400px)
   ========================================== */
@media (max-width: 400px) {
    .page-banner {
        padding: 12px 0;
    }
    
    .page-banner h2 {
        font-size: 1.1rem;
    }
    
    .page-banner p {
        font-size: 0.75rem;
    }
    
    .stats-pills {
        gap: 8px;
    }
    
    .stat-pill {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .stat-icon {
        font-size: 0.95rem;
    }
    
    .stat-info strong {
        font-size: 0.9rem;
    }
    
    .stat-info span {
        font-size: 0.6rem;
    }
    
    .section-header {
        padding: 10px;
    }
    
    .section-header h3 {
        font-size: 0.85rem;
    }
    
    .section-header .page-info {
        font-size: 0.68rem;
    }
    
    .update-item {
        padding: 10px;
        gap: 7px;
    }
    
    .cat-badge {
        font-size: 0.55rem;
        min-width: 35px;
        padding: 3px 5px;
    }
    
    /* TITLE - READABLE */
    .update-title {
        font-size: 0.88rem;
        line-height: 1.48;
    }
    
    .tag-small {
        font-size: 0.52rem;
        padding: 2px 4px;
    }
    
    .update-date {
        font-size: 0.68rem;
        min-width: 55px;
    }
    
    .update-arrow {
        font-size: 0.85rem;
    }
    
    /* PAGINATION - READABLE */
    .pagination {
        padding: 12px 8px;
        gap: 4px;
    }
    
    .pg-btn {
        padding: 6px 9px;
        font-size: 0.72rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 6px 10px;
    }
    
    .pg-btn.pg-num {
        min-width: 32px;
        padding: 6px 7px;
    }
}

/* ==========================================
   RESPONSIVE - ULTRA SMALL (360px)
   ========================================== */
@media (max-width: 360px) {
    .page-banner h2 {
        font-size: 1rem;
    }
    
    .page-banner p {
        font-size: 0.72rem;
    }
    
    .breadcrumb-banner {
        font-size: 0.72em;
        margin-top: 8px;
    }
    
    .stat-pill {
        padding: 5px 8px;
        gap: 5px;
    }
    
    .stat-icon {
        font-size: 0.88rem;
    }
    
    .stat-info strong {
        font-size: 0.85rem;
    }
    
    .stat-info span {
        font-size: 0.55rem;
    }
    
    .section-header {
        padding: 8px 10px;
    }
    
    .section-header h3 {
        font-size: 0.8rem;
    }
    
    .section-header .page-info {
        font-size: 0.65rem;
    }
    
    .update-item {
        padding: 9px 8px;
        gap: 6px;
    }
    
    .cat-badge {
        font-size: 0.52rem;
        min-width: 32px;
        padding: 2px 4px;
    }
    
    /* TITLE - STILL CLEAR */
    .update-title {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    
    .tag-small {
        font-size: 0.5rem;
        padding: 2px 3px;
    }
    
    .update-date {
        font-size: 0.65rem;
        min-width: 50px;
    }
    
    .update-arrow {
        font-size: 0.8rem;
    }
    
    /* PAGINATION - STILL VISIBLE */
    .pagination {
        padding: 10px 6px;
        gap: 3px;
    }
    
    .pg-btn {
        padding: 5px 8px;
        font-size: 0.68rem;
    }
    
    .pg-btn.pg-first,
    .pg-btn.pg-prev,
    .pg-btn.pg-next,
    .pg-btn.pg-last {
        padding: 5px 8px;
    }
    
    .pg-btn.pg-num {
        min-width: 28px;
        padding: 5px 6px;
    }
}