/* Custom CSS for Islamic Website */

/* General Styles */
:root {
  --primary-color: #e89256; /* Turuncu kahverengi ton - yeni gradient rengi */
  --primary-dark: #895b38; /* Koyu turuncu kahverengi - gradient için */
  --secondary-color: #6c757d;
  --accent-color: #D4AF37; /* Altın/sarı ton */
  --dark-color: #29363D;
  --light-color: #F8F9F2;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #D4AF37;
  --danger-color: #B33951;
}

body {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 0.95rem;
}

main {
  flex: 1 0 auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Custom carousel and navbar adjustments */
#mainCarousel {
  margin-top: -0.5rem;
}

/* Navbar Customization */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

.gradient-navbar {
  background: linear-gradient(180deg, #e89256 0%, #895b38 100%);
  position: relative;
  overflow: hidden;
}

.gradient-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.gradient-navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #895b38, #D4AF37, #895b38);
}

.navbar-brand {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 0.2rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.nav-link:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero/Banner Sections */
.bg-light {
  background-color: var(--light-color) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card Customization */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

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

.card-title {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.card-body {
  padding: 1.2rem;
}

/* Buttons */
.btn {
  border-radius: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: #764d30;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(232, 146, 86, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(30, 111, 92, 0.2);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 0.25rem;
}

/* Carousel Customization */
.carousel {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  bottom: 2rem;
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
}

/* Form Elements */
.form-control {
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Footer Customization */
footer {
  background-color: var(--dark-color) !important;
  position: relative;
  padding: 2rem 0 1.5rem;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

footer a {
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--accent-color) !important;
  text-decoration: none;
}

footer h5 {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

footer p, footer address {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
  background-color: rgba(232, 146, 86, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 146, 86, 0.2);
}

.accordion-button {
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
}

.accordion-body {
  padding: 1rem;
  font-size: 0.9rem;
}

/* Tab Customization */
.nav-tabs .nav-link {
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
}

/* Modal Customization */
.modal-content {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-img-top {
    height: 180px;
  }
  
  .carousel-caption {
    padding: 0.5rem;
    bottom: 1rem;
  }
  
  .carousel-caption h5 {
    font-size: 1rem;
  }
  
  .carousel-caption p {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    height: 160px;
  }
  
  .carousel-caption {
    display: none;
  }
}

/* Animation Effects */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.zoom-in {
  animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

/* Custom Classes */
.text-justify {
  text-align: justify;
}

.shadow-sm {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow-md {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12) !important;
}

.rounded-custom {
  border-radius: 0.75rem !important;
}

.bg-gradient-primary {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.gradient-card-header {
  background: linear-gradient(180deg, #e89256 0%, #895b38 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.text-small {
  font-size: 0.85rem;
}

.text-large {
  font-size: 1.15rem;
}

/* İslami stillemeler */
.arabic-text {
  font-family: 'Lateef', 'Scheherazade New', serif;
  line-height: 1.8;
  direction: rtl;
  font-size: 1.4rem;
}

.ayah-container {
  background-color: rgba(232, 146, 86, 0.05);
  border-right: 3px solid var(--primary-color);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 0.5rem;
}

.hadith-container {
  background-color: rgba(212, 175, 55, 0.05);
  border-right: 3px solid var(--accent-color);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 0.5rem;
}

/* Sayfa Geçiş Animasyonları */
#loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  width: 100px;
  height: 100px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}
