/* ===== APPLE + GOOGLE INSPIRED THEME ===== */
.apple-google-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 85vh;
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.mobile-nav-panel.open {
    transform: translateY(0);
}

.nav-handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 12px auto;
}

.mobile-nav-content {
    padding: 20px 24px;
    height: calc(100% - 29px);
    overflow-y: auto;
}

/* Mobile Logo */
.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0 0;
}

/* Glass Search Bar */
.mobile-search-container {
    margin-bottom: 24px;
}

.search-bar-glass {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.search-bar-glass:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.search-bar-glass i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.search-form {
    flex: 1;
}

.search-input-glass {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 400;
    outline: none;
}

.search-input-glass::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Glass Stats Cards */
.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card-glass {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card-glass i {
    font-size: 20px;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Quick Categories */
.mobile-quick-categories {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

.quick-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.category-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--category-color, rgba(0, 122, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 20px;
    color: white;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* Navigation Menu */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.nav-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-4px);
}

.nav-menu-item i:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    width: 24px;
}

.nav-menu-item span {
    flex: 1;
    margin-right: 16px;
    font-size: 16px;
    font-weight: 500;
}

.nav-menu-item i:last-child {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container-desktop {
    display: block;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 280px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    width: 320px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-bar i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.stat-badge i {
    color: #007AFF;
}

/* ===== HERO SECTION (Latest Article) ===== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.category-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-summary {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    color: #007AFF;
}

.hero-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4);
}

.hero-read-btn i {
    font-size: 14px;
}

/* ===== TRENDING SECTION ===== */
.trending-section {
    padding: 40px 0;
    background: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.section-title i {
    color: #FF3B30;
}

.see-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    gap: 12px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.trending-card {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.trending-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.category-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.trending-content {
    padding: 24px;
}

.trending-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.trending-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.meta-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.trending-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: rgba(255, 59, 48, 0.1);
    transform: scale(1.05);
}

.like-btn.liked {
    background: #FF3B30;
    color: white;
}

.like-btn.liked i {
    color: white;
}

.trending-read-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trending-read-link:hover {
    gap: 12px;
}

/* ===== LATEST NEWS (Side-by-side layout) ===== */
.latest-news-section {
    padding: 40px 0;
    background: #000000;
}

.news-grid-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-side {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card-side:hover {
    transform: translateX(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.news-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-image-side {
    flex: 0 0 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-overlay-side {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.news-content-side {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.news-category {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.news-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.news-title-side {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-summary-side {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.news-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-like-btn:hover {
    background: rgba(255, 59, 48, 0.1);
}

.news-like-btn.liked {
    background: #FF3B30;
    color: white;
}

.read-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-card-side:hover .read-arrow {
    color: #007AFF;
    transform: translateX(-4px);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 40px 0;
    background: #000000;
}

.categories-grid-glass {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card-glass {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.category-card-glass:hover {
    transform: translateX(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.category-icon-glass {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-symbol {
    font-size: 20px;
    color: white;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.category-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.category-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-card-glass:hover .category-arrow {
    color: #007AFF;
    transform: translateX(-4px);
}

/* ===== FOOTER ===== */
.main-footer {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-stats-grid {
    display: flex;
    gap: 24px;
}

.footer-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.footer-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.footer-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        display: none;
    }

    .logo h1 {
        font-size: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-meta {
        gap: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .news-card-link {
        flex-direction: column;
    }

    .news-image-side {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }

    .image-overlay-side {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-brand {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-summary {
        font-size: 14px;
    }

    .hero-read-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .quick-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.mobile-nav-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.mobile-nav-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mobile-nav-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

