﻿/* PHP component styles (from Vue scoped CSS) */

/* frontend\src\components\TemplatesComponent.vue */
.templates-page {
  padding: 3rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  direction: rtl;
}

.templates-header {
  text-align: center;
  margin-bottom: 3rem;
}

.templates-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 1rem 0;
}

.templates-subtitle {
  font-size: 1.125rem;
  color: #718096;
  margin: 0;
  line-height: 1.6;
}

.templates-filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.templates-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.templates-category-pill {
  padding: 0.5rem 1.25rem;
  background-color: #F7FAFC;
  color: #4A5568;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.templates-category-pill:hover {
  background-color: #EDF2F7;
}

.templates-category-pill.active {
  background-color: #2D3748;
  color: #FFFFFF;
}

.templates-search-wrapper {
  position: relative;
  flex: 0 0 300px;
}

.templates-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9375rem;
  direction: rtl;
}

.templates-search-input:focus {
  outline: none;
  border-color: #4299E1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.templates-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #A0AEC0;
  pointer-events: none;
}

.templates-loading,
.templates-empty {
  text-align: center;
  padding: 3rem;
  color: #718096;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.template-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #F7FAFC;
  position: relative;
}

.template-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E0;
  font-size: 2rem;
}

.template-card-content {
  padding: 1.25rem;
}

.template-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-direction: row-reverse;
}

.template-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #F7FAFC;
  border: none;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.template-card-arrow:hover {
  background-color: #EDF2F7;
  color: #2D3748;
}

.template-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A202C;
  margin: 0;
  flex: 1;
}

.template-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.template-card-tag {
  padding: 0.25rem 0.75rem;
  background-color: #F7FAFC;
  color: #718096;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .templates-page {
    padding: 2rem 1rem;
  }

  .templates-main-title {
    font-size: 2rem;
  }

  .templates-filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .templates-search-wrapper {
    flex: 1;
  }

  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* frontend\src\components\ContactComponent.vue */
.contact-component {
  padding: 3rem 1.5rem;
  direction: rtl;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section (Left - White) */
.contact-form-section {
  background: #FFFFFF;
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #1A202C;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.875rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
  width: 100%;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 2.5rem;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  pointer-events: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding-right: 2.5rem;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  pointer-events: none;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus,
.select-wrapper select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #3B82F6;
  color: #FFFFFF;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background-color: #2563EB;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-icon {
  font-size: 0.875rem;
}

.form-disclaimer {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
  text-align: center;
}

.contact-form-error {
  font-size: 0.875rem;
  color: #e74c3c;
  margin: 0;
  text-align: center;
}

.contact-recaptcha-group {
  margin: 0;
}

.contact-recaptcha-label {
  font-weight: 600;
  color: #1A202C;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-recaptcha-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  min-height: 0;
}

.contact-recaptcha-scale {
  display: inline-block;
  max-width: 100%;
  transform-origin: top right;
}

@media (max-width: 768px) {
  .contact-recaptcha-wrap {
    justify-content: center;
  }

  .contact-recaptcha-scale {
    transform-origin: top center;
  }
}

/* Contact Info Section (Right - Dark Blue) */
.contact-info-section {
  background-color: #1E293B;
  color: #FFFFFF;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.info-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-top: 0.25rem;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-detail-content a{
  color: #FFFFFF;
}

.contact-detail-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.availability-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.availability-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.availability-icon {
  color: #10B981;
  font-size: 1.25rem;
}

.availability-title {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.availability-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.social-section {
  margin-top: auto;
}

.social-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 1rem 0;
}

.success-text {
  font-size: 1.125rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-component {
    padding: 2rem 0;
  }

  .contact-form-section,
  .contact-info-section {
    padding: 2rem 1.5rem;
  }
}

/* Blog archive & single post — 1200px content width */
.main-content.blog-layout .container {
  max-width: 1200px;
}

.blog-archive,
.blog-post {
  direction: rtl;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-archive {
  padding: 2.5rem 0 4rem;
}

.blog-archive-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.blog-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.5rem;
  gap: 0.65rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.blog-card-meta-dot,
.blog-post-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.blog-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-card-title a:hover {
  color: #4f46e5;
}

.blog-card-excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

.blog-card-link {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-archive-empty,
.blog-post-empty {
  padding: 3rem 2rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 1rem;
  color: #64748b;
}

.blog-archive-empty p,
.blog-post-empty p {
  margin: 0.5rem 0 0;
}

/* Blog single post (/content/alias) */
.blog-post {
  padding: 2rem 0 4rem;
}

.blog-post-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.blog-post-hero {
  margin: 0 0 2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.blog-post-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
}

.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}

.blog-post-lead {
  margin-bottom: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #475569;
}

.blog-prose .blog-post-block {
  margin-bottom: 1.5rem;
}

.blog-prose .blog-post-block:last-child {
  margin-bottom: 0;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  margin: 2rem 0 0.75rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
}

.blog-prose h2 { font-size: 1.5rem; }
.blog-prose h3 { font-size: 1.25rem; }

.blog-prose p {
  margin: 0 0 1.25rem;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.25rem;
  padding-right: 1.35rem;
}

.blog-prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.blog-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-right: 4px solid #4f46e5;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #475569;
}

@media (max-width: 1024px) {
  .blog-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-archive {
    padding: 1.5rem 0 3rem;
  }

  .blog-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-post {
    padding: 1.25rem 0 3rem;
  }

  .blog-post-hero {
    border-radius: 0.875rem;
  }
}

