/**
 * Mini LLM All Educations Page Styles
 * Styling for the /sve-edukacije/ page
 */

/* Main Container */
.mini-llm-all-educations-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.mini-llm-all-educations-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: #c48f56;
    border-radius: 16px;
    color: white;
}

.mini-llm-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.mini-llm-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mini-llm-breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.mini-llm-breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.mini-llm-all-educations-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-llm-all-educations-description {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* No Educations State */
.mini-llm-no-educations {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.no-educations-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mini-llm-no-educations h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 15px 0;
}

.mini-llm-no-educations p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

.btn-browse-shop {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid #000000;
}

.btn-browse-shop:hover {
    background: #000000;
    border-color: #000000;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 138, 145, 0.3);
}

/* Login Form Section */
.mini-llm-login-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 25px 0;
}

.mini-llm-login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #c48f56;
    box-shadow: 0 0 0 3px rgba(196, 143, 86, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #c48f56;
}

.mini-llm-all-educations-container .mini-llm-login-form button.btn-login {
    width: 100% !important;
    background: #c48f56 !important;
    background-color: #c48f56 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(196, 143, 86, 0.2) !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal !important;
    user-select: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.mini-llm-all-educations-container .mini-llm-login-form button.btn-login:hover {
    background: #b07d4a !important;
    background-color: #b07d4a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(196, 143, 86, 0.3) !important;
    color: white !important;
    border: none !important;
}

.mini-llm-all-educations-container .mini-llm-login-form button.btn-login:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(196, 143, 86, 0.2) !important;
    background: #b07d4a !important;
    background-color: #b07d4a !important;
}

.mini-llm-all-educations-container .mini-llm-login-form button.btn-login:focus {
    outline: 2px solid #c48f56 !important;
    outline-offset: 2px !important;
    background: #c48f56 !important;
    background-color: #c48f56 !important;
}

.login-links {
    display: flex;
    justify-content: center;
    text-align: center;
}

.login-links a {
    color: #c48f56;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: #b07d4a;
    text-decoration: underline;
}

/* Welcome Message */
.mini-llm-welcome-message {
    background: rgba(196, 143, 86, 0.1);
    border: 1px solid rgba(196, 143, 86, 0.2);
    color: #c48f56;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.welcome-text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #c48f56;
}

.logout-link {
    color: #c48f56;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid rgba(196, 143, 86, 0.3);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.logout-link:hover {
    background: rgba(196, 143, 86, 0.1);
    border-color: rgba(196, 143, 86, 0.5);
    color: #c48f56;
    text-decoration: none;
}

/* Educations Sections */
.educations-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title.purchased-section {
    color: #28a745;
    border-bottom-color: #28a745;
}

.section-title.available-section {
    color: #000000;
    border-bottom-color: #000000;
}

.section-icon {
    font-size: 24px;
}

/* Educations Grid */
.mini-llm-educations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Education Card */
.education-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    position: relative;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.education-card.purchased {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.education-card.purchased::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    z-index: 1;
}

/* Education Thumbnail */
.education-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.education-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.education-card:hover .education-thumbnail img {
    transform: scale(1.05);
}

.education-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-icon {
    font-size: 48px;
    color: #000000;
}

/* Purchased Badge */
.purchased-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    z-index: 2;
}

.badge-icon {
    font-size: 10px;
}

/* Education Content */
.education-content {
    padding: 25px;
}

.education-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.education-title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.education-title a:hover {
    color: #007cba;
    text-decoration: none;
}

.education-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Education Stats */
.education-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lessons-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.lessons-icon {
    font-size: 16px;
}

.price-info {
    color: #000000;
    font-weight: 600;
    font-size: 16px;
}

/* Education Actions */
.education-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-start-education,
.btn-buy-education {
    flex: 1;
    background: #000000;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid #000000;
}

.btn-start-education:hover,
.btn-buy-education:hover {
    background: #000000;
    border-color: #000000;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-start-education {
    background: #28a745;
    border-color: #28a745;
}

.btn-start-education:hover {
    background: #218838;
    border-color: #218838;
}

.btn-view-product,
.btn-view-details {
    background: transparent;
    color: #000000;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid #e1e5e9;
    flex: 1;
}

.btn-view-product:hover,
.btn-view-details:hover {
    background: #f8f9fa;
    border-color: #000000;
    color: #000000;
    text-decoration: none;
}

/* Footer Summary */
.mini-llm-educations-footer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.educations-summary h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 20px 0;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mini-llm-educations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .mini-llm-all-educations-container {
        margin-top: 50px;
        padding: 15px;
    }
    
    .mini-llm-all-educations-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .mini-llm-all-educations-title {
        font-size: 36px;
    }
    
    .mini-llm-all-educations-description {
        font-size: 16px;
    }
    
    .mini-llm-login-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .login-links {
        text-align: center;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .welcome-text {
        font-size: 15px;
    }
    
    .mini-llm-educations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-actions {
        flex-direction: column;
    }
    
    .btn-start-education,
    .btn-buy-education,
    .btn-view-product,
    .btn-view-details {
        flex: none;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .mini-llm-all-educations-title {
        font-size: 28px;
    }
    
    .education-content {
        padding: 20px;
    }
    
    .education-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .education-card,
    .education-thumbnail img,
    .btn-start-education,
    .btn-buy-education,
    .btn-view-product,
    .btn-view-details {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .education-card {
        border: 2px solid;
    }
    
    .btn-start-education,
    .btn-buy-education {
        border: 2px solid;
    }
}

/* Focus styles for keyboard navigation */
.education-title a:focus,
.btn-start-education:focus,
.btn-buy-education:focus,
.btn-view-product:focus,
.btn-view-details:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}
