/* Custom styles for WeshRayek.Web */

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
}

.card {
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card.post-card {
    transition: transform 0.2s;
}

.card.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-box h4 {
    font-weight: bold;
    color: #007A3D;
}

.achievement-badge {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    min-width: 150px;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin-top: 50px;
}

.social-login-buttons .btn {
    margin: 5px;
}

.voting-buttons .btn {
    margin-right: 5px;
}

.comment-card {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card.post-card {
        margin-bottom: 15px;
    }
}

/* RTL Dropdown Styles */
.dropdown-menu {
    text-align: right !important;
    direction: rtl !important;
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1rem !important;
    padding-left: 0.5rem !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #007A3D !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
}

/* Ensure dropdown positioning for RTL */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Theme toggle button styles */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #007A3D;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.3);
}

/* Page Headers */
.page-header {
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color: #007A3D;
}

.page-header-lg {
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color: #007A3D;
    letter-spacing: 1px;
}

/* Brand Logo */
.brand-logo {
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
}

.brand-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-circle-lg {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icons */
.icon-lg {
    font-size: 50px;
    color: #007A3D;
}

.icon-xl {
    font-size: 60px;
    color: #007A3D;
}

.icon-2x {
    font-size: 2rem;
}

.icon-3x {
    font-size: 3rem;
    color: #ccc;
}

.icon-4x {
    font-size: 4rem;
    color: #ccc;
}

.star-icon {
    color: gold;
}

.trophy-icon {
    font-size: 2rem;
    color: gold;
}

.speech-icon {
    font-size: 2rem;
    color: silver;
}

.heart-icon {
    font-size: 2rem;
    color: #8B4513;
}

/* Images - Legacy styles, component-specific styles take precedence */
.post-image.legacy {
    height: 200px;
    object-fit: cover;
}

.post-image-lg {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
}

/* Cards */
.card-clickable {
    cursor: pointer;
    border: none;
    background: white;
}

.category-card-hover {
    transition: box-shadow 0.2s;
}

/* Position and Layout */
.position-bottom-center {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
}

.height-250 {
    height: 250px;
}

/* Dropdown and Autocomplete */
.autocomplete-dropdown {
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    cursor: pointer;
}

.search-dropdown {
    z-index: 1000;
}

/* File Input */
.file-input-hidden {
    display: none;
}

/* Progress bars */
.progress-bar-modern {
    /* Width set dynamically via style attribute */
}

.progress-fill {
    /* Width set dynamically via style attribute */
}

.result-fill {
    /* Width set dynamically via style attribute */
}

.toast-progress {
    /* Width set dynamically via style attribute */
}

/* Modal */
.modal-show {
    display: block;
}

/* Text Styles */
.text-lg {
    font-size: 1.1rem;
}

.badge-lg {
    font-size: 1rem;
}

/* Additional color utilities */
.text-brand-green {
    color: #007A3D;
}

.text-gray {
    color: #ccc;
}

.cursor-pointer {
    cursor: pointer;
}