/* ============================================
   Pages CSS — About, Terms, Privacy, Contact, DMCA, Blog
   freeviddown Static Page Styles
   ============================================ */

/* ── Page Layout ── */
.page-wrapper {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

.page-main {
   flex: 1;
}

/* ── Page Hero ── */
.page-hero {
   padding: 100px 0 60px;
   text-align: center;
   position: relative;
   overflow: hidden;
}

.page-hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
   pointer-events: none;
}

.page-hero .container {
   position: relative;
   z-index: 1;
}

.page-hero-icon {
   font-size: 3.5rem;
   margin-bottom: 1rem;
   display: inline-block;
   animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
   0%, 100% { transform: translateY(0); }
   50% { transform: translateY(-8px); }
}

.page-hero-title {
   font-size: 2.5rem;
   font-weight: 800;
   background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #a855f7));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   margin-bottom: 1rem;
   line-height: 1.2;
}

.page-hero-subtitle {
   font-size: 1.15rem;
   color: var(--text-secondary);
   max-width: 600px;
   margin: 0 auto;
   line-height: 1.6;
}

/* ── Breadcrumb ── */
.breadcrumb {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.75rem 0;
   font-size: 0.85rem;
   color: var(--text-muted);
   flex-wrap: wrap;
}

.breadcrumb a {
   color: var(--primary);
   text-decoration: none;
   transition: color 0.2s;
}

.breadcrumb a:hover {
   color: var(--primary-hover);
}

.breadcrumb-sep {
   opacity: 0.4;
}

/* ── Content Sections ── */
.page-section {
   padding: 3rem 0;
}

.page-section:nth-child(even) {
   background: var(--bg-secondary);
}

.page-content-card {
   background: var(--bg-card, var(--bg-secondary));
   border: 1px solid var(--border-color);
   border-radius: 16px;
   padding: 2.5rem;
   margin-bottom: 2rem;
   transition: transform 0.2s, box-shadow 0.2s;
}

.page-content-card:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
}

.page-content-card h2 {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--text-primary);
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.page-content-card h3 {
   font-size: 1.15rem;
   font-weight: 600;
   color: var(--text-primary);
   margin: 1.5rem 0 0.75rem;
}

.page-content-card p {
   color: var(--text-secondary);
   line-height: 1.8;
   margin-bottom: 1rem;
}

.page-content-card ul,
.page-content-card ol {
   color: var(--text-secondary);
   line-height: 1.8;
   padding-left: 1.5rem;
   margin-bottom: 1rem;
}

.page-content-card li {
   margin-bottom: 0.5rem;
}

.page-content-card a {
   color: var(--primary);
   text-decoration: none;
   border-bottom: 1px dotted var(--primary);
}

.page-content-card a:hover {
   border-bottom-style: solid;
}

/* ── Stats Grid (About Page) ── */
.stats-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 1.5rem;
   margin: 2rem 0;
}

.stat-card {
   background: var(--bg-primary);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   padding: 2rem 1.5rem;
   text-align: center;
   transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
   transform: translateY(-4px);
   border-color: var(--primary);
}

.stat-card-icon {
   font-size: 2.5rem;
   margin-bottom: 0.75rem;
}

.stat-card-value {
   font-size: 2rem;
   font-weight: 800;
   background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #a855f7));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   display: block;
   margin-bottom: 0.25rem;
}

.stat-card-label {
   font-size: 0.9rem;
   color: var(--text-muted);
   font-weight: 500;
}

/* ── Values Grid (About Page) ── */
.values-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.5rem;
   margin-top: 1.5rem;
}

.value-card {
   background: var(--bg-primary);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   padding: 2rem;
   text-align: center;
   transition: transform 0.2s;
}

.value-card:hover {
   transform: translateY(-3px);
}

.value-icon {
   font-size: 2.5rem;
   margin-bottom: 0.75rem;
}

.value-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--text-primary);
   margin-bottom: 0.5rem;
}

.value-desc {
   color: var(--text-secondary);
   font-size: 0.9rem;
   line-height: 1.6;
}

/* ── Contact Form ── */
.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2.5rem;
}

.contact-form .form-group {
   margin-bottom: 1.25rem;
}

.contact-form label {
   display: block;
   font-weight: 600;
   color: var(--text-primary);
   margin-bottom: 0.5rem;
   font-size: 0.9rem;
}

.contact-form .input,
.contact-form textarea {
   width: 100%;
   padding: 0.85rem 1rem;
   background: var(--bg-primary);
   border: 1px solid var(--border-color);
   border-radius: 12px;
   color: var(--text-primary);
   font-size: 0.95rem;
   transition: border-color 0.2s, box-shadow 0.2s;
   font-family: inherit;
}

.contact-form .input:focus,
.contact-form textarea:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form textarea {
   resize: vertical;
   min-height: 140px;
}

.contact-info-cards {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.contact-info-card {
   background: var(--bg-primary);
   border: 1px solid var(--border-color);
   border-radius: 16px;
   padding: 1.5rem;
   display: flex;
   align-items: flex-start;
   gap: 1rem;
   transition: border-color 0.2s;
}

.contact-info-card:hover {
   border-color: var(--primary);
}

.contact-info-icon {
   font-size: 1.8rem;
   min-width: 40px;
   text-align: center;
}

.contact-info-title {
   font-weight: 700;
   color: var(--text-primary);
   margin-bottom: 0.25rem;
}

.contact-info-text {
   color: var(--text-secondary);
   font-size: 0.9rem;
   line-height: 1.5;
}

/* ── Blog Cards ── */
.blog-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
   gap: 1.5rem;
}

.blog-card {
   background: var(--bg-card, var(--bg-secondary));
   border: 1px solid var(--border-color);
   border-radius: 16px;
   padding: 2rem;
   transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
   text-decoration: none;
   display: block;
   cursor: pointer;
}

.blog-card:hover {
   transform: translateY(-4px);
   box-shadow: var(--shadow-lg);
   border-color: var(--primary);
}

.blog-card-icon {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   display: block;
}

.blog-card-title {
   font-size: 1.15rem;
   font-weight: 700;
   color: var(--text-primary);
   margin-bottom: 0.5rem;
}

.blog-card-desc {
   color: var(--text-secondary);
   font-size: 0.9rem;
   line-height: 1.6;
   margin-bottom: 1rem;
}

.blog-card-link {
   color: var(--primary);
   font-weight: 600;
   font-size: 0.9rem;
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
}

.blog-card-link::after {
   content: '→';
   transition: transform 0.2s;
}

.blog-card:hover .blog-card-link::after {
   transform: translateX(4px);
}

/* ── Legal Text Styles (Terms, Privacy, DMCA) ── */
.legal-section {
   counter-reset: legal-section;
}

.legal-section .page-content-card {
   counter-increment: legal-section;
}

.legal-updated {
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
   margin-bottom: 2rem;
   font-style: italic;
}

.legal-highlight {
   background: rgba(99, 102, 241, 0.06);
   border-left: 4px solid var(--primary);
   padding: 1rem 1.5rem;
   border-radius: 0 12px 12px 0;
   margin: 1rem 0;
}

.legal-highlight p {
   margin: 0;
   color: var(--text-primary);
   font-weight: 500;
}

/* ── Mega Footer ── */
.mega-footer {
   background: var(--bg-secondary);
   border-top: 1px solid var(--border-color);
   padding: 3rem 0 0;
}

.mega-footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 2.5rem;
   padding-bottom: 2rem;
}

.footer-brand {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.footer-brand-logo {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   text-decoration: none;
   font-size: 1.3rem;
   font-weight: 800;
   color: var(--text-primary);
}

.footer-brand-logo .logo-icon {
   font-size: 1.5rem;
}

.footer-brand-desc {
   color: var(--text-muted);
   font-size: 0.9rem;
   line-height: 1.6;
   max-width: 320px;
}

.footer-social {
   display: flex;
   gap: 0.75rem;
   margin-top: 0.5rem;
}

.footer-social a {
   width: 36px;
   height: 36px;
   border-radius: 10px;
   background: var(--bg-tertiary, rgba(255,255,255,0.05));
   border: 1px solid var(--border-color);
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   font-size: 1.1rem;
   transition: all 0.2s;
}

.footer-social a:hover {
   background: var(--primary);
   border-color: var(--primary);
   transform: translateY(-2px);
}

.footer-column h4 {
   font-size: 0.85rem;
   font-weight: 700;
   color: var(--text-primary);
   text-transform: uppercase;
   letter-spacing: 0.08em;
   margin-bottom: 1rem;
}

.footer-column ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-column li {
   margin-bottom: 0.6rem;
}

.footer-column a {
   color: var(--text-muted);
   text-decoration: none;
   font-size: 0.9rem;
   transition: color 0.2s, padding-left 0.2s;
   display: inline-block;
}

.footer-column a:hover {
   color: var(--primary);
   padding-left: 4px;
}

.footer-bottom {
   border-top: 1px solid var(--border-color);
   padding: 1.25rem 0;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 1rem;
}

.footer-bottom-text {
   color: var(--text-muted);
   font-size: 0.8rem;
}

.footer-bottom-links {
   display: flex;
   gap: 1.5rem;
}

.footer-bottom-links a {
   color: var(--text-muted);
   text-decoration: none;
   font-size: 0.8rem;
   transition: color 0.2s;
}

.footer-bottom-links a:hover {
   color: var(--primary);
}

/* ── Header Nav Enhancement ── */
.nav-pages {
   display: flex;
   align-items: center;
   gap: 0.25rem;
}

.nav-pages a {
   color: var(--text-secondary);
   text-decoration: none;
   font-size: 0.85rem;
   padding: 0.4rem 0.75rem;
   border-radius: 8px;
   transition: all 0.2s;
   font-weight: 500;
   white-space: nowrap;
}

.nav-pages a:hover {
   color: var(--primary);
   background: rgba(99, 102, 241, 0.08);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
   .mega-footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .page-hero {
      padding: 80px 0 40px;
   }

   .page-hero-title {
      font-size: 1.8rem;
   }

   .page-hero-subtitle {
      font-size: 1rem;
   }

   .page-content-card {
      padding: 1.5rem;
   }

   .contact-grid {
      grid-template-columns: 1fr;
   }

   .mega-footer-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
   }

   .footer-bottom {
      flex-direction: column;
      text-align: center;
   }

   .blog-grid {
      grid-template-columns: 1fr;
   }

   .nav-pages {
      display: none;
   }

   .stats-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 480px) {
   .stats-grid {
      grid-template-columns: 1fr;
   }
}

/* ── RTL Support ── */
[dir="rtl"] .breadcrumb {
   direction: rtl;
}

[dir="rtl"] .legal-highlight {
   border-left: none;
   border-right: 4px solid var(--primary);
   border-radius: 12px 0 0 12px;
}

[dir="rtl"] .footer-column a:hover {
   padding-left: 0;
   padding-right: 4px;
}

[dir="rtl"] .blog-card-link::after {
   content: '←';
}

[dir="rtl"] .blog-card:hover .blog-card-link::after {
   transform: translateX(-4px);
}

[dir="rtl"] .contact-form .input,
[dir="rtl"] .contact-form textarea {
   text-align: right;
}

[dir="rtl"] .page-content-card ul,
[dir="rtl"] .page-content-card ol {
   padding-left: 0;
   padding-right: 1.5rem;
}
