@import 'variables.css';

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.nav-btn {
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.nav-btn.glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
}

.nav-btn.admin {
    background: var(--secondary);
    color: #fff;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 234, 0.4);
}

.nav-btn.large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* === Hero Section === */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.stats-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 4rem;
}

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

.stat-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-box .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(150px);
    opacity: 0.2;
    z-index: 1;
}

.bg-glow.one {
    background: var(--primary);
    top: -20%;
    left: -10%;
}

.bg-glow.two {
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
}

/* === Listings === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.listing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.listing-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.listing-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.category-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

.cat-pill:hover,
.cat-pill.active {
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    flex: 0 1 340px;
    width: 340px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.02);
}

.card-image-placeholder.channel {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.1), transparent);
}

.card-image-placeholder.bot {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.1), transparent);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
}

.badge.channel {
    background: rgba(0, 242, 234, 0.15);
    color: var(--primary);
}

.badge.bot {
    background: rgba(255, 0, 85, 0.15);
    color: var(--secondary);
}

.date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-sm:hover {
    background: #fff;
    color: #000;
}

/* Premium Card */
.premium-card {
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === Navbar === */
.navbar {
    background-color: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #fff;
}

.btn-nav {
    background: var(--primary);
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-nav:hover {
    opacity: 0.9;
}

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    background: radial-gradient(circle at center, rgba(0, 242, 234, 0.05) 0%, transparent 60%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: #fff;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Listings === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(0, 242, 234, 0.1);
    color: #fff;
    border-color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card Styling */
.card {
    background: #15151b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.card-icon.channel {
    color: #0088cc;
}

.card-icon.bot {
    color: #ff0055;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.card-meta i {
    margin-right: 5px;
}

/* Premium Card */
.premium-card {
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.premium-badge {
    float: right;
    color: #ffd700;
}

/* Footer */
/* === Hybrid Design Updates === */

/* Square Category Cards */
.category-grid-square {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cat-card-square {
    width: 130px;
    height: 130px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: var(--text-main);
    transition: 0.3s;
    border: 1px solid var(--border-glass);
    /* Subtle border */
    text-decoration: none;
}

.cat-card-square i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.cat-card-square span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.cat-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.cat-card-square:hover i {
    color: var(--primary);
}

/* Horizontal Listing Cards */
.grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card-horizontal {
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: 0.3s;
    position: relative;
    text-decoration: none;
    height: 100px;
    border: 1px solid var(--border-glass);
}

.card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.horizontal-img-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.horizontal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-img-container.channel {
    background: var(--primary);
}

.horizontal-img-container.group {
    background: #10b981;
}

.horizontal-img-container.bot {
    background: var(--secondary);
}

.card-horizontal-body {
    flex: 1;
    overflow: hidden;
}

.card-horizontal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-horizontal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-horizontal-action {
    color: var(--text-muted);
    margin-left: 10px;
    transition: 0.3s;
}

.card-horizontal:hover .card-horizontal-action {
    color: var(--primary);
}

@media (max-width: 768px) {
    .grid-horizontal {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 100%;
}

.features-header {
    margin-bottom: 3rem;
}

.features-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.features-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}