/* Program Card Styles - Unified for all pages */

/* Base Program Card */
.program-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

/* Program Card Header */
.program-card-header {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 217, 61, 0.1));
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Program Tags */
.program-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.program-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

/* Program Header Info */
.program-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.program-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.program-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.program-info {
    flex: 1;
    min-width: 0;
}

.program-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.program-year {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.program-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.stars {
    color: #ffd93d;
}

.rating-value {
    color: #ffffff;
    font-weight: 600;
}

/* Program Body */
.program-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.program-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    line-height: 1.4;
}

.program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 0.3rem;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.7rem;
    color: #cccccc;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.program-actions {
    display: flex;
    gap: 1rem;
}

.program-actions .btn-primary {
    flex: 1;
}

.program-actions .btn-secondary {
    padding: 12px 16px;
}

/* PREMIUM PROGRAM STYLES */
.program-card.premium {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(124, 58, 237, 0.03) 50%, 
        rgba(109, 40, 217, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.08),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    overflow: visible;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.program-card.premium:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.12),
        0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.premium-badge::before {
    content: '⭐';
    font-size: 0.8em;
}

/* Premium Program Header Enhancement */
.program-card.premium .program-card-header {
    background: linear-gradient(45deg, 
        rgba(139, 92, 246, 0.08), 
        rgba(124, 58, 237, 0.05));
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fix premium badge overlapping tags */
.program-card.premium .program-tags {
    margin-right: 80px; /* Добавляем отступ справа чтобы теги не заходили под премиум бейдж */
}

/* Premium Program Logo Enhancement */
.program-card.premium .program-logo {
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Premium Title Enhancement */
.program-card.premium .program-info h3 {
    color: #8b5cf6;
    font-weight: 700;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Premium Rating Enhancement */
.program-card.premium .program-rating {
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    justify-content: center;
}

.program-card.premium .rating-value {
    color: #8b5cf6;
    font-weight: 600;
}

/* Premium Body with fixed height */
.program-card.premium .program-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Premium Description with fixed height */
.program-card.premium .program-description {
    color: rgba(255, 255, 255, 0.9);
    min-height: 4rem;
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    line-height: 1.4;
}

/* Premium Stats Enhancement */
.program-card.premium .program-stats {
    background: rgba(139, 92, 246, 0.03);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 10px;
}

.program-card.premium .stat-value {
    color: #8b5cf6;
    font-weight: 700;
}

.program-card.premium .stat-label {
    color: rgba(139, 92, 246, 0.8);
    font-weight: 500;
}

/* Premium Actions Enhancement */
.program-card.premium .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
}

.program-card.premium .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.program-card.premium .btn-secondary {
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    transition: all 0.3s ease;
}

.program-card.premium .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}

/* Premium Tags Enhancement */
.program-card.premium .program-tag {
    border: 1px solid rgba(184, 134, 87, 0.25);
    box-shadow: 0 2px 8px rgba(184, 134, 87, 0.15);
    background: rgba(184, 134, 87, 0.04);
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    .program-card {
        border-radius: 15px;
        margin: 0 5px;
        min-height: auto;
    }

    .program-card-header {
        padding: 1rem;
        min-height: auto;
    }

    .program-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .program-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .program-info h3 {
        font-size: 1.2rem;
        min-height: auto;
        text-align: center;
    }

    .program-rating {
        justify-content: center;
    }

    .program-body {
        padding: 1rem;
    }

    .program-description {
        text-align: center;
        margin-bottom: 1rem;
        min-height: auto;
    }

    .program-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .stat-item {
        min-height: auto;
        padding: 0.75rem 0.5rem;
        text-align: center;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .program-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .program-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
        justify-content: center;
    }

    .program-tags {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .program-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    /* Mobile Premium Adjustments */
    .program-card.premium {
        transform: translateY(-1px);
        min-height: auto;
    }
    
    .program-card.premium:hover {
        transform: translateY(-3px);
    }
    
    .premium-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .program-card.premium .program-card-header {
        min-height: auto;
    }
    
    .program-card.premium .program-info h3 {
        min-height: auto;
        text-align: center;
    }
    
    .program-card.premium .program-description {
        min-height: auto;
    }
    
    .program-card.premium .program-tags {
        margin-right: 50px; /* Меньший отступ на мобильных устройствах */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .program-card {
        margin: 0;
    }

    .program-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item:last-child {
        grid-column: 1 / -1;
    }

    .stat-item {
        padding: 0.5rem;
    }
} 