/* Tutor Live Classes Styles */

/* Form Wrapper */
.tlc-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tlc-form-wrapper h2 {
    margin-bottom: 30px;
    color: #1a202c;
    font-size: 28px;
}

/* Form Elements */
.tlc-form-group {
    margin-bottom: 24px;
}

.tlc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.tlc-form-group small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 13px;
}

.tlc-input,
.tlc-textarea,
.tlc-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.tlc-input:focus,
.tlc-textarea:focus,
.tlc-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.tlc-textarea {
    resize: vertical;
    font-family: inherit;
}

.tlc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Buttons */
.tlc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.tlc-btn-primary {
    background: #3182ce;
    color: #fff;
}

.tlc-btn-primary:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.tlc-btn-secondary {
    background: #718096;
    color: #fff;
}

.tlc-btn-secondary:hover {
    background: #4a5568;
}

.tlc-btn-danger {
    background: #e53e3e;
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
}

.tlc-btn-danger:hover {
    background: #c53030;
}

.tlc-form-actions {
    margin-top: 32px;
    text-align: right;
}

/* Image Preview */
.tlc-image-preview {
    margin-bottom: 12px;
    min-height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}

.tlc-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.tlc-image-preview:empty {
    display: none;
}

/* Messages */
.tlc-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.tlc-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.tlc-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Live Classes Grid */
.tlc-live-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Class Card */
.tlc-class-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tlc-class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tlc-class-thumbnail-link {
    display: block;
    text-decoration: none;
}

.tlc-class-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tlc-class-thumbnail-link:hover .tlc-class-thumbnail {
    transform: scale(1.05);
}

.tlc-class-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.tlc-class-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tlc-class-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    line-height: 1.4;
}

.tlc-class-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tlc-class-title a:hover {
    color: #3182ce;
}

.tlc-class-desc {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Class Meta */
.tlc-class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.tlc-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
}

.tlc-meta-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #718096;
}

.tlc-free-badge {
    background: #48bb78;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Class Footer */
.tlc-class-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tlc-tutor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlc-tutor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tlc-tutor-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.tlc-class-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* No Classes Message */
.tlc-no-classes {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
}

/* Single Class Page */
.single-live_class .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

.tlc-single-header {
    margin-bottom: 40px;
}

.tlc-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
}

.tlc-single-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlc-single-meta-item .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #3182ce;
}

.tlc-single-meta-item strong {
    color: #2d3748;
    font-weight: 600;
}

.tlc-enrollment-section {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.tlc-enrollment-section h3 {
    color: #fff;
    margin-bottom: 16px;
}

.tlc-enrollment-section .tlc-btn {
    font-size: 18px;
    padding: 16px 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .tlc-live-classes-grid {
        grid-template-columns: 1fr;
    }
    
    .tlc-form-row {
        grid-template-columns: 1fr;
    }
    
    .tlc-class-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .tlc-class-actions {
        justify-content: center;
    }
    
    .tlc-form-wrapper {
        padding: 20px;
        margin: 20px;
    }
}

/* Loading State */
.tlc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tlc-btn.loading {
    position: relative;
    color: transparent;
}

.tlc-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: tlc-spin 0.6s linear infinite;
}

@keyframes tlc-spin {
    to { transform: rotate(360deg); }
}
