/* استایل‌های اصلی پوسته دانشیارهاب */

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --light-bg: #f9fafb;
    --dark-text: #333;
    --radius: 6px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* هدر */
.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding .site-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
}
.site-description {
    font-size: 0.8rem;
    color: #666;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation li {
    margin-left: 1rem;
}
.main-navigation a {
    color: var(--dark-text);
    font-weight: 500;
}
.main-navigation a:hover {
    color: var(--primary-color);
}

/* نوار ابزار سریع موبایل */
.mobile-actions-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 999;
}
.mobile-actions-bar .action-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.hero-section .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-section .hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-search {
    max-width: 500px;
    margin: 0 auto 1rem;
    display: flex;
}
.hero-search input {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
}
.hero-search button {
    background-color: var(--secondary-color);
    border: none;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}
.hero-buttons {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: #fff;
}
.btn-primary {
    background-color: var(--primary-color);
}
.btn-secondary {
    background-color: var(--secondary-color);
}
.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8rem;
    margin: 1rem 0;
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumbs li {
    margin-left: 0.5rem;
}
.breadcrumbs li::after {
    content: ' / ';
    margin-left: 0.5rem;
}
.breadcrumbs li:last-child::after {
    content: '';
}

/* Grade navigation */
.grades-nav {
    margin-top: 2rem;
}
.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.grade-card {
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 0.5rem;
    background-color: #fff;
}
.grade-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subjects-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
}
.subjects-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.subjects-list li {
    margin-bottom: 0.3rem;
}

/* Content card */
.content-card {
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}
.content-card .card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.content-card .card-body {
    padding: 0.5rem 0.8rem;
}
.card-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.card-excerpt {
    font-size: 0.9rem;
    color: #555;
}

/* Slider */
.content-slider-wrapper {
    margin: 2rem 0;
}
.content-slider {
    position: relative;
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}
.content-slider .content-card {
    flex: 0 0 80%;
    margin-right: 1rem;
}
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: var(--radius);
    z-index: 10;
}
.slider-prev { right: calc(100% - 20px); }
.slider-next { left: calc(100% - 20px); }

/* Single content */
.single-edu-content .meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.single-edu-content .meta-table th,
.single-edu-content .meta-table td {
    padding: 0.3rem;
    border-bottom: 1px solid #eee;
}
.entry-poster img {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.download-box {
    margin-top: 1rem;
}
.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
}
.download-locked {
    border: 1px dashed var(--primary-color);
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
}
.download-locked .btn-pay {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
}

/* Trust blocks */
.trust-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: center;
}
.trust-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 1rem;
}

/* AI widget */
.ai-toggle {
    position: fixed;
    bottom: 70px;
    left: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
}
.ai-widget {
    position: fixed;
    bottom: 130px;
    left: 20px;
    width: 320px;
    max-width: 90%;
    height: 400px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}
.ai-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-messages {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
}
.ai-messages .message {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    max-width: 85%;
}
.ai-messages .message.user {
    background-color: var(--primary-color);
    color: #fff;
    margin-left: auto;
}
.ai-messages .message.bot {
    background-color: #eee;
    color: #333;
}
.ai-input-wrapper {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid #eee;
}
.ai-input-wrapper input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.ai-input-wrapper button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    margin-left: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
}
.ai-suggestions {
    padding: 0.3rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.ai-suggestions .chip {
    background-color: #f0f0f0;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
}

/* Scroll to top */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius);
    display: none;
    z-index: 999;
}
