/* NURHD TV - Dark Blue/Green Theme */

:root {
    --primary-color: #1a5490; /* Dark Blue */
    --secondary-color: #2d8659; /* Green */
    --accent-color: #3b82f6; /* Bright Blue */
    --bg-dark: #0a0e27;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* Top Header - Fixed */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(26, 84, 144, 0.3);
}

.logo-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.btn-icon:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Category Card */
.category-card {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-dark);
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.thumbnail-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.pin-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-open {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: auto;
}

.btn-open svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-open:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 12px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.3s;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .category-card {
        flex-direction: column;
    }
    
    .category-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .logo {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
}

/* Channel List Styles - Modern List View */
.channel-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.channel-item-modern {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.channel-item-modern:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.channel-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.channel-icon-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.channel-icon-modern svg {
    width: 32px;
    height: 32px;
    color: white;
    opacity: 0.9;
}

.channel-name-modern {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.channel-lock-modern {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-lock-modern svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    stroke: #fbbf24;
}

/* Search Form Styles */
.channel-search-form {
    padding: 16px;
    margin-bottom: 8px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-search {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.clear-search:hover {
    color: var(--text-primary);
}

.clear-search svg {
    width: 18px;
    height: 18px;
}

/* Pagination Styles - Updated */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Old Channel List (for backward compatibility) */
.channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.channel-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.channel-icon {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.channel-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    opacity: 0.8;
}

.channel-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-lock svg {
    width: 18px;
    height: 18px;
    color: white;
}

.channel-name {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Profile Styles */
.profile-header {
    text-align: center;
    padding: 40px 20px;
}

.profile-phone {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subscription-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 30px;
}

.subscription-badge.active {
    background: var(--secondary-color);
    color: white;
}

.subscription-badge.inactive {
    background: #dc2626;
    color: white;
}

.subscription-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin: 20px;
    border: 1px solid var(--border-color);
}

.subscription-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.subscription-days {
    text-align: center;
    margin: 20px 0;
}

.days-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.days-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.active {
    color: var(--secondary-color);
}

.detail-value.inactive {
    color: #dc2626;
}

/* Slideshow Styles - Horizontal Carousel */
.slideshow-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 16px;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Navigation Arrows */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
    left: 10px;
}

.slideshow-nav.next {
    right: 10px;
}

.slideshow-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.slideshow-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--accent-color);
    width: 24px;
    border-radius: 4px;
    border-color: var(--accent-color);
}

.dot:hover {
    background-color: rgba(59, 130, 246, 0.6);
}

/* Responsive slideshow */
@media (max-width: 768px) {
    .slideshow-container {
        padding: 12px;
        border-radius: 12px;
        margin: 0 auto 16px;
    }
    
    .slideshow-wrapper {
        height: 200px;
        border-radius: 8px;
    }
    
    .slideshow-nav {
        width: 32px;
        height: 32px;
    }
    
    .slideshow-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .slideshow-dots {
        bottom: 8px;
        padding: 8px 12px 0;
    }
    
    .form-container {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .slideshow-wrapper {
        height: 220px;
    }
}


/* Search/Filter Styles */
.search-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-filter-bar input,
.search-filter-bar select {
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-filter-bar input {
    flex: 1;
    min-width: 200px;
}

.search-filter-bar select {
    min-width: 150px;
}

