﻿/* Channels Page */
.page-channels,
.page-my-picks,
.page-leaderboard,
.page-subscription,
.page-settings {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.125rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

    .filter-tab.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .filter-tab:hover:not(.active) {
        background: #f5f7fa;
    }

/* Channels Grid Full */
.channels-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.channel-card-full {
    padding: 2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .channel-card-full.accessible:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    }

    .channel-card-full.locked {
        opacity: 0.7;
        cursor: not-allowed;
    }

.channel-header-full {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.channel-icon-big {
    font-size: 3.5rem;
}

.channel-name-full {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.channel-description-full {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.channel-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

    .stat-item i {
        color: #667eea;
    }

.channel-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lock-icon-xl {
    font-size: 3rem;
}

.lock-text {
    font-weight: 600;
    color: #666;
}

.btn-upgrade-inline {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.channel-access-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #667eea;
    font-weight: 600;
}

/* My Picks - Coming Soon */
.coming-soon-card {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.coming-soon-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coming-soon-card p {
    color: #666;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 8px;
}

    .preview-item i {
        color: #667eea;
        font-size: 1.5rem;
    }

.recent-activity-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: #f5f7fa;
    border-radius: 12px;
    text-align: center;
}

    .recent-activity-preview h3 {
        margin-bottom: 1rem;
    }

.empty-state-text {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .tab-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .tab-btn:hover:not(.active) {
        background: #f5f7fa;
    }

.leaderboard-section {
    padding: 2rem;
    border-radius: 16px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .leaderboard-item:hover:not(.locked) {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .leaderboard-item.locked {
        opacity: 0.6;
    }

.rank-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #d4af37 100%);
    color: #fff;
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: #667eea;
    color: white;
}

.pick-info {
    flex: 1;
}

.pick-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sport-tag {
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pick-header h4 {
    margin: 0;
    font-size: 1.125rem;
}

.pick-detail {
    color: #666;
    margin: 0;
}

.pick-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.channel-badge {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

    .status-badge.won {
        background: #22c55e;
        color: white;
    }

.locked-pick-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #999;
    flex: 1;
}

/* Channel Stats List */
.channel-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-stat-item {
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .channel-stat-item.locked {
        opacity: 0.6;
    }

.channel-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.channel-icon-stat {
    font-size: 2rem;
}

.channel-name-stat h4 {
    margin: 0 0 0.25rem 0;
}

.locked-label {
    font-size: 0.75rem;
    color: #999;
}

.channel-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.metric-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Monthly Overview */
.monthly-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.monthly-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 12px;
}

    .monthly-stat-card .stat-icon {
        font-size: 2.5rem;
    }

    .monthly-stat-card .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: #667eea;
    }

    .monthly-stat-card .stat-label {
        font-size: 0.875rem;
        color: #666;
    }

.info-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #e8f4ff;
    border-radius: 8px;
    color: #0066cc;
    font-size: 0.875rem;
}

/* Subscription Page */
.current-plan-card {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.subscription-badge-large {
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 1.125rem;
    font-weight: 700;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-active {
    color: #22c55e;
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-tier-card {
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

    .plan-tier-card.popular {
        border: 2px solid #667eea;
    }

    .plan-tier-card.current {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    }

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tier-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.tier-basic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tier-intermediate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.tier-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

    .tier-features li {
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .tier-features i {
        color: #22c55e;
    }

.current-plan-label {
    padding: 0.75rem;
    background: #22c55e;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
}

.btn-tier-select {
    display: block;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-tier-select:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

.billing-history-section {
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
        color: #999;
    }

/* Settings Page */
.settings-section {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

    .settings-section .section-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

    .form-input:read-only {
        background: #f5f5f5;
        cursor: not-allowed;
    }

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 12px;
}

.toggle-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.toggle-info p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: #667eea;
}

    input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

    .security-btn:hover {
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .security-btn > i:first-child {
        font-size: 1.5rem;
        color: #667eea;
    }

    .security-btn > div {
        flex: 1;
    }

    .security-btn h4 {
        margin: 0 0 0.25rem 0;
    }

    .security-btn p {
        margin: 0;
        color: #666;
        font-size: 0.875rem;
    }

.badge-coming-soon {
    padding: 0.25rem 0.75rem;
    background: #fbbf24;
    color: #000;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.danger-zone {
    border: 2px solid #ef4444;
}

.danger-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-danger-outline,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger-outline {
    background: white;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: white;
}

.btn-danger-outline:hover:not(:disabled) {
    background: #fef2f2;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-danger-outline:disabled,
.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.danger-note {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .filter-tabs,
    .leaderboard-tabs {
        flex-direction: column;
    }

    .channels-grid-full,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-actions,
    .danger-actions {
        flex-direction: column;
    }
}
