/* ============================================================
   VISION MEDIA - Pages Supplementary CSS
   ============================================================ */

/* ---- Filter Tabs ---- */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.filter-tab {
  padding: 9px 22px; border-radius: 50px; font-size: 14px; font-weight: 700;
  border: 2px solid var(--border); background: var(--white); color: var(--text-muted);
  cursor: pointer; transition: var(--transition); font-family: var(--font-ar);
}
.filter-tab:hover { border-color: var(--primary-light); color: var(--primary-light); }
.filter-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Portfolio Grid ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.portfolio-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow);
}
.portfolio-card-inner { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:52px; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-card-inner { transform: scale(1.08); }
.portfolio-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,46,0.92) 0%, rgba(13,27,46,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay h4 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.portfolio-card-overlay .cat { color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
@media(max-width:900px){ .portfolio-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:500px){ .portfolio-grid{grid-template-columns:1fr;} }

/* ---- Blog Layout ---- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.blog-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.blog-sidebar-widget { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.blog-sidebar-widget h4 { font-size: 16px; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.recent-article { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.recent-article:last-child { border-bottom: none; }
.recent-article-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.recent-article-text h5 { font-size: 13px; color: var(--primary); margin-bottom: 3px; line-height: 1.4; }
.recent-article-text span { font-size: 11px; color: var(--text-muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 5px 14px; background: var(--light); border-radius: 50px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.tag-item:hover { background: var(--primary); color: var(--white); }
@media(max-width:900px){ .blog-layout{grid-template-columns:1fr;} .blog-sidebar{position:static;} }

/* ---- Article Detail ---- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.article-body { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.article-header-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-meta span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.article-meta span i { color: var(--accent); }
.article-content h2 { font-size: 1.4rem; margin: 28px 0 14px; color: var(--primary); }
.article-content h3 { font-size: 1.15rem; margin: 20px 0 10px; color: var(--primary-light); }
.article-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-right: 20px; margin-bottom: 16px; color: var(--text-muted); line-height: 1.9; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-right: 4px solid var(--accent); padding: 16px 20px; background: rgba(201,162,39,0.06); border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; color: var(--text-muted); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tag { padding: 5px 14px; background: var(--light); border-radius: 50px; font-size: 12px; color: var(--text-muted); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.share-btn { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-ar); }
@media(max-width:900px){ .article-layout{grid-template-columns:1fr;} }

/* ---- Contact Page ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border); }
.contact-info-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg,var(--primary-light),var(--primary)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.contact-info-text h5 { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-info-text a, .contact-info-text p { font-size: 15px; font-weight: 700; color: var(--primary); }
.social-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.social-card { border-radius: var(--radius); padding: 16px; text-align: center; border: 2px solid var(--border); transition: var(--transition); cursor: pointer; }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.social-card i { font-size: 28px; margin-bottom: 8px; display: block; }
.social-card span { font-size: 12px; font-weight: 700; color: var(--text-muted); }
@media(max-width:900px){ .contact-layout{grid-template-columns:1fr;} }

/* ---- Request Form Steps ---- */
.form-steps { display: flex; align-items: center; gap: 0; margin-bottom: 36px; }
.form-step-item { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.step-circle.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.step-circle.done { background: #10b981; border-color: #10b981; color: var(--white); }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.step-label.active { color: var(--primary); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step-line.done { background: #10b981; }
.form-panel { display: none; }
.form-panel.active { display: block; }
@media(max-width:600px){ .step-label{display:none;} }

/* ---- Pricing Cards ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; border: 2px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.pricing-card::before { content:''; position:absolute; top:0; right:0; left:0; height:4px; background:var(--border); }
.pricing-card.featured { border-color: var(--accent); transform: scale(1.04); box-shadow: var(--shadow-lg); }
.pricing-card.featured::before { background: linear-gradient(90deg,var(--accent),var(--accent-light)); }
.pricing-badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: var(--primary); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 50px; }
.pricing-name { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pricing-price { font-size: 2.6rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.pricing-features li i { color: #10b981; font-size: 13px; }
.pricing-features li.no i { color: #ef4444; }
.pricing-features li.no { color: #9ca3af; text-decoration: line-through; }
@media(max-width:900px){ .pricing-grid{grid-template-columns:1fr;} .pricing-card.featured{transform:scale(1);} }

/* ---- Service Detail ---- */
.service-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.service-sidebar { position: sticky; top: 100px; }
.service-order-card { background: var(--primary); border-radius: var(--radius-lg); padding: 28px; color: var(--white); }
.service-order-card h3 { color: var(--white); margin-bottom: 6px; }
.service-order-card p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 20px; }
.sub-service-radio { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.sub-service-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.07); cursor: pointer; transition: var(--transition); }
.sub-service-option:hover, .sub-service-option.selected { background: rgba(201,162,39,0.2); }
.sub-service-option input { accent-color: var(--accent); }
.sub-service-option label { color: rgba(255,255,255,0.85); font-size: 13.5px; cursor: pointer; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; font-weight: 700; color: var(--primary); font-size: 15px; }
.faq-question i { transition: var(--transition); color: var(--accent); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 16px; }
.faq-answer p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
@media(max-width:900px){ .service-detail-layout{grid-template-columns:1fr;} .service-sidebar{position:static;} }

/* ---- Auth Pages ---- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual { background: linear-gradient(135deg,var(--dark) 0%,var(--primary-light) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 40px; position: relative; overflow: hidden; }
.auth-visual::before { content:''; position:absolute; width:400px; height:400px; border-radius:50%; border:1px solid rgba(201,162,39,0.15); top:-100px; right:-100px; }
.auth-visual::after { content:''; position:absolute; width:300px; height:300px; border-radius:50%; border:1px solid rgba(201,162,39,0.1); bottom:-80px; left:-80px; }
.auth-visual-logo { font-size: 36px; font-weight: 900; color: var(--white); font-family: var(--font-en); margin-bottom: 20px; position: relative; z-index: 1; }
.auth-visual-logo span { color: var(--accent); }
.auth-visual h2 { color: var(--white); text-align: center; margin-bottom: 12px; position: relative; z-index: 1; }
.auth-visual p { color: rgba(255,255,255,0.65); text-align: center; max-width: 320px; position: relative; z-index: 1; }
.auth-form-wrapper { display: flex; align-items: center; justify-content: center; padding: 60px 40px; background: var(--off-white); }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-card h2 { margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.social-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--radius); border: 2px solid var(--border); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: var(--font-ar); margin-bottom: 10px; }
.social-auth-btn.google { background: var(--white); color: var(--text); }
.social-auth-btn.google:hover { border-color: #4285f4; }
.social-auth-btn.apple { background: var(--dark); color: var(--white); border-color: var(--dark); }
.social-auth-btn.apple:hover { background: #1a1a1a; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.password-field { position: relative; }
.password-toggle { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray); font-size: 16px; }
.strength-bar { height: 4px; border-radius: 2px; margin-top: 6px; transition: var(--transition); }
@media(max-width:768px){ .auth-layout{grid-template-columns:1fr;} .auth-visual{display:none;} }

/* ---- Clients Grid ---- */
.clients-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.client-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,0.3); }
.client-avatar { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: var(--white); margin: 0 auto 14px; }
.client-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.client-card .sector { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.client-card .service { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.stars { display: flex; gap: 3px; justify-content: center; color: var(--accent); font-size: 12px; margin-bottom: 10px; }
.client-testimonial { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; font-style: italic; }
@media(max-width:1000px){ .clients-grid{grid-template-columns:repeat(3,1fr);} }
@media(max-width:700px){ .clients-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:450px){ .clients-grid{grid-template-columns:1fr;} }

/* ---- Terms/Privacy Content ---- */
.legal-content { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow); }
.legal-content h2 { color: var(--primary); margin: 32px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 1.25rem; }
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.legal-content ul { padding-right: 20px; color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-toc { background: var(--light); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.legal-toc h4 { color: var(--primary); margin-bottom: 12px; font-size: 14px; }
.legal-toc ol { padding-right: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--primary-light); font-size: 14px; }
.legal-toc a:hover { color: var(--accent); }
@media(max-width:768px){ .legal-content{padding:24px;} }

/* ---- Dashboard Common ---- */
.dash-layout { display: flex; min-height: 100vh; direction: rtl; font-family: var(--font-ar); }
.dash-sidebar { width: 260px; background: var(--dark); color: white; flex-shrink: 0; position: fixed; right: 0; top: 0; bottom: 0; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; }
.dash-sidebar::-webkit-scrollbar { width: 4px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.dash-main { flex: 1; margin-right: 260px; background: #f0f4f8; min-height: 100vh; }
.dash-header { background: white; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
.dash-content { padding: 28px; }
.dash-sidebar-logo { padding: 24px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 20px; font-weight: 900; color: white; font-family: var(--font-en); }
.dash-sidebar-logo span { color: var(--accent); }
.dash-user-card { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.dash-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent-light)); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: var(--primary); flex-shrink: 0; }
.dash-user-info .name { font-size: 14px; font-weight: 700; color: white; }
.dash-user-info .role { font-size: 11px; color: rgba(255,255,255,0.5); }
.dash-nav { padding: 12px 0; flex: 1; }
.dash-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.65); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; border-right: 3px solid transparent; text-decoration: none; }
.dash-nav-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.dash-nav-link.active { background: rgba(201,162,39,0.1); color: var(--accent); border-right-color: var(--accent); }
.dash-nav-link i { width: 18px; text-align: center; font-size: 14px; }
.dash-nav-label { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.dash-badge { background: var(--red); color: white; font-size: 10px; padding: 2px 6px; border-radius: 50px; font-weight: 700; }
.panel { display: none; animation: fadeIn 0.3s ease; }
.panel.active { display: block; }
.stat-card-dash { background: white; border-radius: 12px; padding: 24px; border: 1px solid #e5e9f0; display: flex; align-items: center; gap: 16px; }
.stat-card-dash .stat-icon { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-card-dash .stat-value { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-card-dash .stat-name { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.dash-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.dash-table th { background: var(--primary); color: white; padding: 13px 16px; text-align: right; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dash-table td { padding: 12px 16px; border-bottom: 1px solid #f0f4f8; font-size: 13px; color: var(--text); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #f8fafc; }
.dash-card { background: white; border-radius: 14px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e5e9f0; margin-bottom: 20px; }
.dash-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.dash-card h3 i { color: var(--accent); }
@media(max-width:768px) {
  .dash-sidebar { width: 100%; height: auto; position: relative; }
  .dash-main { margin-right: 0; }
  .dash-layout { flex-direction: column; }
  .dash-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .dash-nav-link { padding: 8px 14px; border-right: none; border-bottom: 3px solid transparent; font-size: 12px; }
  .dash-nav-link.active { border-bottom-color: var(--accent); border-right: none; }
  .dash-content { padding: 16px; }
}
