/**
 * Brand CSS - Additional Styling for Study Hub
 * 
 * @package StudyHub
 */

/* Brand Color Animations */
.studyhub-btn,
.studyhub-course-card,
.studyhub-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutor-meta.tutor-mt-auto,
.tutor-single-course-sidebar-more {
	display: none;
}

/* Course Grid Enhancements */
.tutor-wrap {
    padding: 60px 0;
}

/* Instructor Branding Header */
.studyhub-instructor-branding {
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.studyhub-instructor-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.studyhub-instructor-branding > * {
    position: relative;
    z-index: 1;
}

/* Brand Logo Styles */
.studyhub-brand-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.studyhub-brand-logo {
    max-width: 250px;
    max-height: 100px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Certificate Button Styling */
.studyhub-certificate-link .studyhub-btn {
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 18px;
    padding: 15px 30px;
}

.studyhub-certificate-link .studyhub-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Dashboard Customizations */
.tutor-dashboard-left-menu {
    background: #fff;
    border-right: 1px solid var(--border-color);
}

.tutor-dashboard-left-menu a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tutor-dashboard-left-menu a:hover,
.tutor-dashboard-left-menu a.active {
    background: var(--main-color);
    color: #fff;
}

/* Course Progress Bar */
.tutor-course-progress-wrapper {
    margin: 20px 0;
}

.tutor-course-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.tutor-course-progress-bar .tutor-course-progress-filled {
    background: linear-gradient(90deg, var(--main-color), var(--sub-color));
    height: 100%;
    transition: width 0.5s ease;
}

/* Responsive Branding */
@media (max-width: 768px) {
    .studyhub-instructor-branding {
        padding: 40px 15px;
    }
    
    .studyhub-brand-logo {
        max-width: 180px;
        max-height: 70px;
    }
}

/* Color Picker Custom Styling */
.wp-picker-container {
    margin-top: 10px;
}

/* Brand Preview Box */
.studyhub-brand-preview {
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--tutor-color-primary-rgb),.8) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
    opacity: 0.6;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sub-color);
    border: 2px solid transparent;
    background-clip: padding-box;
    opacity: 1;
}

/* スクロール時のみスクロールバーを表示 */
::-webkit-scrollbar-thumb {
    transition: opacity 0.3s ease;
}

/* オーバーレイスクロールバー */
.studyhub-card,
.studyhub-table-wrapper,
.studyhub-table-container,
.studyhub-dashboard {
    overflow: auto;
    scrollbar-gutter: stable both-edges;
}

/* 横スクロール要素 */
@media (max-width: 768px) {
    .studyhub-card {
        overflow-x: auto;
        overflow-y: visible;
    }
}