/* BA17.Client/BookTrans/BookTransGlobal.css – סגנונות כלליים למודול תרגום ספרים */

/* ייבוא פונט עברי יפה */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* משתני צבע גלובליים למודול */
:root {
    --bt-primary: #6B5B95;
    --bt-secondary: #FF6F61;
    --bt-accent: #88B0D3;
    --bt-success: #5CB85C;
    --bt-warning: #FFA500;
    --bt-danger: #FF6F61;
    --bt-light: #F7F9FC;
    --bt-dark: #2C3E50;
    --bt-muted: #7F8C8D;
    --bt-border: #E1E8ED;
    --bt-shadow: rgba(0, 0, 0, 0.08);
    --bt-gradient: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
}

/* פונט כללי למודול */
[class*="book-trans"], 
[class*="BookTrans"],
.upload-section,
.translation-actions,
.project-list-container,
.chapter-list,
.settings-card {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* שיפור כללי לכל הכפתורים במודול */
.btn {
    font-family: 'Rubik', sans-serif !important;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* אפקט גלים לכל הכפתורים */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* טולטיפים מעוצבים */
[title] {
    position: relative;
}

[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease-out forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* שיפור סקרולברים בכל המודול */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bt-light);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bt-primary), var(--bt-accent));
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--bt-primary);
}

/* אנימציות כלליות */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* שיפור focus states */
*:focus {
    outline: none;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--bt-accent) !important;
    box-shadow: 0 0 0 3px rgba(136, 176, 211, 0.15) !important;
}

/* כרטיסים עם אפקט hover מיוחד */
.card,
.list-group-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.list-group-item:hover {
    transform: translateY(-2px) scale(1.01);
}

/* טקסט selection */
::selection {
    background: var(--bt-accent);
    color: white;
}

::-moz-selection {
    background: var(--bt-accent);
    color: white;
}

/* Loader animation למצבי טעינה */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bt-light);
    border-top: 4px solid var(--bt-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* שיפור הודעות Toast */
.toast {
    font-family: 'Rubik', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* כותרות עם אפקט gradient */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--bt-dark);
}

.gradient-text {
    background: var(--bt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badges מעוצבים */
.badge {
    font-family: 'Rubik', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
}

/* פס התקדמות מיוחד */
.progress {
    position: relative;
    overflow: visible;
}

.progress-bar {
    position: relative;
}

.progress-bar::before {
    content: attr(aria-valuenow) '%';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* נקודות עיצוב נוספות */
.decorative-dot {
    width: 8px;
    height: 8px;
    background: var(--bt-gradient);
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.5rem;
}

/* שורת מצב יפה */
.status-line {
    height: 3px; /* הקטנת גובה */
    background: var(--bt-gradient);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.status-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* מדיה קוורי לרספונסיביות */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* ביטול רווחים מיותרים בעמוד תרגום ספרים */
[href="/book-translation"] + * {
    margin-bottom: 0 !important;
}

/* התאמת גובה לתוכן */
.booktrans-grid {
    max-height: 100%;
    overflow: visible;
}

.right-panel {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* מניעת overflow במקומות לא רצויים */
.translation-actions,
.upload-section {
    overflow: visible !important;
} 