/* Collections Page Specific Styles */

.collections-hero {
    padding: 10rem 0 6rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.collections-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1), transparent 50%);
}

.collections-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.collection-stats-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-info {
    text-align: left;
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info .stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Repository Cards */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.repo-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.repo-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.repo-card.featured {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.repo-card.featured:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.repo-rank {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.repo-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repo-badge.best {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.repo-badge.excellent {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.repo-badge.good {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.repo-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.repo-title a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.repo-title a:hover {
    color: var(--primary);
}

.repo-title i {
    font-size: 1rem;
    opacity: 0.5;
}

.repo-owner {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.repo-description {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.repo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saas-score {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.score-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.repo-highlights {
    display: grid;
    gap: 0.5rem;
}

.highlight {
    font-size: 0.875rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Learning Resources */
.learning-section {
    background: var(--dark-light);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.learning-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.08);
}

.learning-card:hover::before {
    transform: scaleX(1);
}

.learning-card.featured {
    border-width: 2px;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.learning-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.learning-badge {
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.learning-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.learning-title a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.learning-title a:hover {
    color: #22c55e;
}

.learning-author {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.learning-description {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.learning-features {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-light);
}

.feature i {
    color: #22c55e;
    font-size: 1rem;
}

.learning-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.learning-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Digital Products Section */
.dark-bg {
    background: #0a0a0c;
}

.product-banner-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    overflow: hidden;
    margin-top: 2rem;
    transition: all 0.4s;
}

.product-banner-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.product-image-side {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.product-visual {
    font-size: 8rem;
    color: var(--white);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.product-info-side {
    padding: 4rem;
}

.product-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-description {
    font-size: 1.125rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-features {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
}

.product-features i {
    color: var(--primary);
}

/* Digital Products Section Expansion */
.products-marketplace {
    margin-top: 4rem;
}

.marketplace-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    position: relative;
    padding-left: 1rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: var(--gradient);
    border-radius: 4px;
}

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

.notion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notion-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.notion-thumb {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.notion-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.notion-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.notion-action {
    margin-top: auto;
}

.btn-notion {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.2s;
}

.btn-notion:hover {
    background: var(--white);
    color: #000;
}

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

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.learning-card.glass:hover {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

@media (max-width: 992px) {
    .product-banner-card {
        grid-template-columns: 1fr;
    }

    .product-image-side {
        padding: 3rem;
    }

    .product-info-side {
        padding: 3rem;
    }

    .product-name {
        font-size: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .collections-hero {
        padding: 8rem 0 4rem;
    }

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

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

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

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}