/* Subject Details Page Styles */
.subject-details-section {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

/* Batch Header */
.batch-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.batch-banner {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.batch-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--batch-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.batch-banner-content {
    position: relative;
    z-index: 1;
}

.batch-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.batch-banner-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.batch-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.batch-meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.live-class-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.live-class-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.live-class-banner i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Subjects Section */
.subjects-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.subjects-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.subjects-header p {
    color: var(--text-secondary);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    background: rgba(30, 30, 47, 0.6);
    border-radius: 16px;
    padding: 1.3rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.subject-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.subject-card:hover::before {
    transform: scaleY(1);
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subject-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    flex-shrink: 0;
}

.subject-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.subject-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subject-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 6px;
    flex: 0 0 auto;
}

.stat-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.subject-teacher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    background: rgba(0, 206, 201, 0.1);
    border-radius: 8px;
}

.subject-teacher i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.subject-teacher span {
    font-weight: 500;
}

.subject-actions {
    display: flex;
    gap: 0.6rem;
}

.subject-btn {
    flex: 1;
    padding: 0.7rem 0.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.subject-btn i {
    font-size: 1rem;
}

.subject-btn-primary {
    background: var(--primary-color);
    color: white;
}

.subject-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.subject-btn-secondary {
    background: rgba(0, 206, 201, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.subject-btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.no-subjects {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-subjects i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .batch-banner h1 {
        font-size: 1.8rem;
    }

    .batch-banner-meta {
        gap: 1rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .subject-actions {
        flex-direction: column;
    }

    .subject-btn {
        width: 100%;
    }
}

/* Hide live class section if not available */
.batch-banner-content:has(.live-class-banner) {
    padding-bottom: 1rem;
}

/* Adjust spacing when no live class */
.batch-banner-content:not(:has(.live-class-banner)) .batch-banner-meta {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .live-class-banner {
        width: 100%;
        justify-content: center;
    }
}

/* Subjects Search */
.subjects-controls {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box-subjects {
    position: relative;
}

.search-box-subjects i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-box-subjects input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.search-box-subjects input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.search-box-subjects input::placeholder {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .subjects-controls {
        margin-bottom: 1.5rem;
    }
}

/* No Subjects State */
.no-subjects {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: rgba(30, 30, 47, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    margin: 2rem auto;
    max-width: 500px;
    grid-column: 1 / -1;
}

.no-subjects i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.no-subjects p {
    font-size: 1.2rem;
    margin: 0;
}
