/* Class Hub Page Styles */

/* Enhanced Resource Cards */
.resource-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid #e8ecef;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

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

.resource-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.resource-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    line-height: 1;
}

.resource-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.resource-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Subject Tags */
.subjects-list h4 {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.subject-tag {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #90caf9;
    transition: all 0.3s ease;
}

.subject-tag:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-2px);
}

/* Features List */
.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.features-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
    font-size: 1rem;
}

/* Full Forms Section */
.full-forms-section {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
}

.full-forms-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.full-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.full-form-item {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.full-form-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.abbreviation {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.full-form {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Blogs Section */
.blogs-section {
    margin: 40px 0;
}

.blogs-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Additional Resources Section */
.additional-resources-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
}

.additional-resources-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.additional-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.additional-resource-item {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.additional-resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.additional-resource-item .resource-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.additional-resource-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.additional-resource-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Study Tips Section */
.study-tips-section {
    margin: 40px 0;
}

.study-tips-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.tip-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.tip-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tip-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
}

.faq-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.faq-item {
    /* background: var(--white); */
    border-radius: 10px;
    margin-bottom: 0;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
    /* overflow: hidden; */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding: 20px 25px;
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

/* Button Styles */
.btn-block {
    width: 100%;
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .full-forms-grid,
    .blogs-grid,
    .additional-resources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .class-hero {
        padding: 40px 0;
    }
    
    .class-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .resource-card {
        padding: 20px;
    }
    
    .resource-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .resource-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .class-info {
        grid-template-columns: 1fr;
    }
    
    .info-number {
        font-size: 1.5rem;
    }
    
    .subject-tags {
        justify-content: center;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .resource-card,
    .blog-card,
    .tip-item,
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn,
    .faq-question {
        display: none !important;
    }
    
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
    
    .class-hero {
        background: none !important;
        color: #000 !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #fff;
        --shadow: 0 4px 20px rgba(255,255,255,0.1);
    }
    
    .resource-card,
    .blog-card,
    .tip-item,
    .faq-item,
    .full-form-item,
    .additional-resource-item {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .resource-header h3,
    .blog-card h4,
    .tip-content h4,
    .additional-resource-item h4 {
        color: #f0f0f0;
    }
    
    .faq-question {
        color: #f0f0f0;
    }
    
    .faq-answer {
        background: #2d2d2d;
    }
    
    .subject-tag {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
        color: #bfdbfe;
        border-color: #3b82f6;
    }
}
