/* Education Progress Tabs - Exact Design Match */

.education-progress-tabs {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Progress Bar Tab Başlıkları */
.tab-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    gap: 0;
    flex-wrap: wrap;
}

/* Tab Item */
.tab-item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

/* Tab Icon (Check Mark Circle) */
.tab-icon {
    width: 35px !important;
    height: 35px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 30px;
    color: #ddd;
    min-width: 60px;
    min-height: 60px;
}

.tab-icon img {
    width: 35px !important;
    height: 35px !important;
    opacity: 0.15;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
    min-width: 40px;
    min-height: 40px;
}

.tab-icon i,
.tab-icon svg {
    transition: all 0.3s ease;
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
}

/* Tab Label */
.tab-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: center;
    max-width: 180px;
    overflow: visible;
    line-height: 1.2;
}

/* Tab Connector Line - ORTALANMIŞ */
.tab-connector {
    flex: 1;
    height: 6px;
    background: #e8e8e8;
    margin: 0 15px;
    transition: background 0.5s ease;
    position: relative;
    top: 0;
    align-self: flex-end;
    margin-bottom: 35px;
    min-width: 50px;
    max-width: 150px;
    border-radius: 3px;
}

/* Active Tab Styles */
.tab-item.active .tab-icon img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.tab-item.active .tab-icon i,
.tab-item.active .tab-icon svg {
    color: #7c3aed;
}

.tab-item.active .tab-label {
    color: #7c3aed;
    font-weight: 700;
}

/* Completed Tab Styles (Previous tabs) */
.tab-item.completed .tab-icon img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.tab-item.completed .tab-icon i,
.tab-item.completed .tab-icon svg {
    color: #7c3aed;
}

.tab-item.completed .tab-label {
    color: #7c3aed;
    font-weight: 600;
}

/* Completed Connector - Purple gradient */
.tab-connector.completed {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
}

/* Hover Effects */
.tab-item:hover .tab-icon {
    transform: scale(1.05);
}

.tab-item:hover .tab-label {
    color: #333;
}

/* Tab Contents */
.tab-content {
    display: none;
    background: #fff;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

/* Empty Content Message */
.empty-content-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* Template Preview (Editor only) */
.template-preview {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Styling */
.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4,
.tab-content h5,
.tab-content h6 {
    color: #212529;
    margin-top: 0;
    margin-bottom: 16px;
}

.tab-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tab-content ul,
.tab-content ol {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 24px;
}

.tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.tab-content .wp-block-image {
    margin: 20px 0;
}

.tab-content .wp-block-gallery {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-progress-tabs {
        padding: 10px;
        margin: 20px auto;
    }
    
    .tab-progress-bar {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .tab-connector {
        width: 3px;
        height: 40px;
        margin: 10px 0;
        align-self: center;
        margin-top: 0;
    }
    
    .tab-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px;
    }
    
    .tab-label {
        font-size: 16px;
        max-width: none;
        text-align: left;
    }
    
    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tab-label {
        font-size: 14px;
    }
}

/* Çok fazla tab olduğunda */
@media (min-width: 769px) {
    .tab-progress-bar {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* Tab Contents */
.tab-contents {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Styling */
.tab-content h2,
.tab-content h3,
.tab-content h4 {
    color: #212529;
    margin-top: 0;
    margin-bottom: 16px;
}

.tab-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tab-content ul,
.tab-content ol {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 24px;
}

.tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-progress-tabs {
        padding: 10px;
        margin: 20px auto;
    }
    
    .tab-progress-bar {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .tab-connector {
        width: 3px;
        height: 40px;
        margin: 10px 0;
        top: 0;
    }
    
    .tab-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px;
    }
    
    .tab-label {
        font-size: 16px;
    }
    
    .tab-contents {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tab-icon {
        width: 40px;
        height: 40px;
    }
    
    .tab-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .tab-label {
        font-size: 14px;
    }
}

