/* Custom CSS for Hebrew Geometry Theorems App */

/* Font Configuration */
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-rubik {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Font Size Classes */
.font-size-small {
    font-size: 0.75rem; /* 12px */
    line-height: 1.5;
}

.font-size-medium {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
}

.font-size-large {
    font-size: 1.25rem; /* 20px */
    line-height: 1.7;
}

/* Page Title */
.page-title {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
}

/* Font Size Buttons */
.font-size-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

.font-size-btn-small {
    font-size: 0.75rem; /* 12px */
}

.font-size-btn-medium {
    font-size: 1rem; /* 16px */
}

.font-size-btn-large {
    font-size: 1.375rem; /* 22px */
}

.font-size-btn-active {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.font-size-btn:not(.font-size-btn-active) {
    background-color: white;
    color: #374151;
}

.font-size-btn:not(.font-size-btn-active):hover {
    background-color: #f9fafb;
}

/* Navigation Styles */
.nav-btn {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.nav-btn:hover {
    background-color: #e2e8f0;
    color: #475569;
}

.nav-btn-active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.nav-btn-active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Disabled navigation buttons */
.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    background-color: #f8fafc;
    color: #64748b;
}

/* Theorem Card Styles */
.theorem-card {
    transition: all 0.2s ease-in-out;
}

.theorem-card:hover {
    transform: translateY(-1px);
}

/* Reverse Theorem Highlighting */
.theorem-card.highlighted {
    background-color: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
}

/* Compact spacing */
.theorem-card {
    line-height: 1.4;
}

/* Math Content Styling */
.math-content {
    line-height: 1.7;
}

/* KaTeX Custom Styling for RTL */
.katex {
    direction: ltr;
    display: inline-block;
}

/* Mobile-first responsive design */
@media (max-width: 767px) {
    /* Mobile styles are handled by Tailwind classes in HTML */
    .theorem-card {
        margin-bottom: 0.25rem;
    }
}

/* Extra small screens - hide button text, show only icons */
@media (max-width: 475px) {
    .xs\:px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .xs\:gap-0 {
        gap: 0;
    }
    
    .xs\:inline {
        display: inline;
    }
    
    .hidden.xs\:inline {
        display: none;
    }
}

@media (min-width: 476px) {
    .hidden.xs\:inline {
        display: inline;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
