/* 
 * Main Stylesheet for Palestinian House of Solidarity Charity Website
 * This stylesheet contains custom styles beyond Bootstrap
 */

/* General Styles */
:root {
  --primary-color: #2c6e49;
  --secondary-color: #4c956c;
  --accent-color: #d68c45;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* RTL specific adjustments */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.top-bar {
  font-size: 0.9rem;
}

.language-switcher a {
  color: #fff;
  text-decoration: none;
  padding: 0 5px;
}

.language-switcher a.active {
  font-weight: bold;
  text-decoration: underline;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.navbar .nav-link:hover {
  color: var(--primary-color);
}

/* Banner Section */
.banner {
  background-size: cover;
  background-position: center;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.banner-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 2rem;
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Section Styles */
.section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Project Cards */
.project-card .card-footer {
  background-color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.progress {
  height: 10px;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background-color: var(--primary-color);
}

/* News Cards */
.news-card .card-footer {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: darken(var(--accent-color), 10%);
  border-color: darken(var(--accent-color), 10%);
  color: white;
}

/* Donation Form */
.donation-form {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-info {
  margin-bottom: 2rem;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #ccc;
  text-decoration: underline;
}

footer .social-media a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: background-color 0.3s;
}

footer .social-media a:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner {
    min-height: 350px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Admin Dashboard Styles */
.admin-sidebar {
  min-height: calc(100vh - 56px);
  background-color: #343a40;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
  margin-right: 0.5rem;
}

.admin-content {
  padding: 2rem;
}

.admin-card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.admin-card .card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(44, 110, 73, 0.25);
}

.required-field::after {
  content: '*';
  color: red;
  margin-left: 4px;
}

/* Status Badges */
.badge-ongoing {
  background-color: var(--primary-color);
  color: white;
}

.badge-completed {
  background-color: #28a745;
  color: white;
}

.badge-planned {
  background-color: #6c757d;
  color: white;
}

/* RTL specific adjustments for admin */
html[dir="rtl"] .admin-sidebar .nav-link i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Image preview */
.img-preview {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
}

/* Custom file input */
.custom-file-input:lang(en)~.custom-file-label::after {
  content: "Browse";
}

.custom-file-input:lang(ar)~.custom-file-label::after {
  content: "تصفح";
}
