/* ===== Pages Common Styles - Glassmorphism Redesign ===== */

/* Page Container */
.page-container {
  min-height: 100vh;
  background: transparent;
  padding-bottom: 3rem;
  position: relative;
}

.page-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Page Header */
.page-header {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px);
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.page-header::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 20s linear infinite;
  z-index: -1;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-title i {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

.page-subtitle {
  font-size: 1.3rem;
  margin: 0;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Page Card */
.page-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 3.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 30px 30px 0 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

.section-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.section-text:last-child {
  margin-bottom: 0;
}

/* Subsections */
.subsection {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subsection:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Styled Lists */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.styled-list li {
  padding: 1rem 0;
  padding-right: 3rem;
  position: relative;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-list li:hover {
  padding-right: 3.5rem;
  color: var(--white);
}

.styled-list li:before {
  content: "●";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  top: 1rem;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.warning-list li:before {
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Definitions Grid */
.definitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.definition-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 15px;
  border-right: 4px solid #3b82f6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.definition-item:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
}

.definition-item h4 {
  color: #60a5fa;
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.definition-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-weight: 500;
}

/* Data Tables */
.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  min-width: 600px;
}

.data-table th {
  background: rgba(59, 130, 246, 0.3);
  color: var(--white);
  padding: 1.5rem;
  text-align: right;
  font-weight: 700;
  border: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
  padding: 1.2rem 1.5rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.data-table tr {
  transition: all 0.3s ease;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Notice Boxes */
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: 20px;
  margin: 2.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.notice-box::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.notice-box:hover::before {
  transform: scaleY(1);
}

.notice-box:hover {
  transform: translateX(8px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.notice-box.important {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.notice-box.warning {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.notice-box.primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.notice-icon {
  font-size: 2rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.notice-box.important .notice-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.notice-box.warning .notice-icon {
  color: #3b82f6;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

.notice-box.primary .notice-icon {
  color: #60a5fa;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
}

.notice-content h4 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.3rem;
}

.notice-content p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Contact Box */
.contact-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 3rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.contact-box:hover::before {
  transform: scaleX(1);
}

.contact-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
}

.contact-box.primary {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: var(--white);
}

.contact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.contact-details {
  margin-top: 2rem;
}

/* Rights Box */
.rights-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.rights-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.rights-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.rights-header i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

.rights-header h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.right-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.right-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.right-item i {
  color: #10b981;
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.right-item span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rights-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .definitions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0;
  }

  .page-title {
    flex-direction: column;
    gap: 1rem;
  }

  .page-title h1 {
    font-size: 2.2rem;
  }

  .page-card {
    padding: 2.5rem 2rem;
    margin: 0 1rem 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .definitions-grid {
    grid-template-columns: 1fr;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .notice-box {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .data-table-container {
    border-radius: 0;
    margin: 2rem -2rem;
  }

  .content-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .page-title h1 {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .page-card {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .contact-box {
    padding: 2rem;
  }

  .rights-box {
    padding: 2rem;
  }

  .subsection {
    padding: 1.5rem;
  }
}

/* تحسينات الوصول */
@media (prefers-reduced-motion: reduce) {
  .page-card,
  .content-section,
  .subsection,
  .definition-item,
  .notice-box,
  .contact-box,
  .right-item {
    transition: none;
    transform: none;
    animation: none;
  }
}

/* تحسينات الطباعة */
@media print {
  .page-container {
    background: white !important;
  }
  
  .page-header {
    background: #f8f9fa !important;
    color: black !important;
  }
  
  .page-card,
  .subsection,
  .definition-item,
  .notice-box,
  .contact-box,
  .rights-box {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .page-title h1,
  .section-title,
  .subsection-title,
  .rights-header h3,
  .contact-title {
    color: #333 !important;
    background: none !important;
    -webkit-text-fill-color: #333 !important;
  }
  
  .section-text,
  .definition-item p,
  .notice-content p,
  .right-item span,
  .rights-note {
    color: #666 !important;
  }
}