/* ── Laptop Portfolio Slider — Front-end Styles ── */

.lps-wrapper {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  padding: 40px 20px;
  --lps-tr: 500ms;
}

/* Grid */
.lps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Right: Info Panel ── */
.lps-right { order: 1; }
.lps-left  { order: 2; }

.lps-info {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--lps-tr) ease, transform var(--lps-tr) ease;
}
.lps-info.lps-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.lps-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  background: #e0eeff;
  color: #1a5fb4;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.lps-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 10px;
}

.lps-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 20px;
}

.lps-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.lps-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 14px;
  background: #f5f5f5;
  border-radius: 8px;
}

.lps-meta-label { color: #888; }
.lps-meta-value { font-weight: 500; color: #1a1a1a; }

.lps-techs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lps-tech {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666;
}

.lps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.lps-btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* Nav */
.lps-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.lps-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.lps-nav-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.lps-dots {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.lps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.lps-dot.lps-dot-active {
  width: 22px;
  border-radius: 4px;
  background: #1a1a1a;
}

.lps-counter {
  font-size: 13px;
  color: #999;
  min-width: 36px;
  text-align: center;
}

/* ── Left: Laptop Mockup ── */
.lps-laptop {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}

.lps-laptop-top {
  background: #1c1c1e;
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 0;
}

.lps-camera {
  width: 7px;
  height: 7px;
  background: #2e2e30;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: inset 0 0 0 1px #111;
}

.lps-screen {
  background: #000;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.lps-hinge {
  height: 7px;
  background: linear-gradient(to bottom, #2c2c2e, #3a3a3c);
  border-radius: 0 0 3px 3px;
}

.lps-base {
  background: #242424;
  border-radius: 0 0 12px 12px;
  padding: 14px 24px 16px;
}

.lps-keyboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  opacity: 0.45;
}

.lps-kb-row {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.lps-key {
  height: 6px;
  width: 16px;
  background: #3a3a3a;
  border-radius: 2px;
}
.lps-key-wide { width: 22px; }
.lps-key-space { width: 70px; }

.lps-touchpad {
  width: 70px;
  height: 32px;
  background: #333;
  border-radius: 5px;
  margin: 0 auto;
  opacity: 0.35;
}

.lps-foot {
  height: 6px;
  background: #111;
  border-radius: 0 0 10px 10px;
  margin: 0 14px;
}

/* ── Slides ── */
.lps-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--lps-tr) ease;
  display: flex;
  flex-direction: column;
}
.lps-slide.lps-active { opacity: 1; }

.lps-browser-bar {
  background: #2a2a2e;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.lps-bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.lps-red    { background: #ff5f57; }
.lps-yellow { background: #ffbd2e; }
.lps-green  { background: #28c840; }

.lps-url-bar {
  flex: 1;
  background: #1c1c1e;
  border-radius: 4px;
  height: 14px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  margin: 0 8px;
}

.lps-url-text {
  font-size: 8px;
  color: #888;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lps-screen-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.lps-screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.lps-placeholder {
  width: 100%;
  height: 100%;
  background: #1e1e22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
  font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .lps-right { order: 2; }
  .lps-left  { order: 1; }
  .lps-title { font-size: 20px; }
}

/* ── Dark Mode Support ── */
@media (prefers-color-scheme: dark) {
  .lps-meta-row   { background: #2a2a2a; }
  .lps-meta-label { color: #aaa; }
  .lps-meta-value { color: #f0f0f0; }
  .lps-title      { color: #f0f0f0; }
  .lps-desc       { color: #aaa; }
  .lps-tech       { border-color: #444; color: #aaa; }
  .lps-nav-btn    { background: #1a1a1a; border-color: #444; color: #ddd; }
  .lps-nav-btn:hover { background: #2a2a2a; }
  .lps-dot        { background: #444; }
  .lps-dot.lps-dot-active { background: #f0f0f0; }
  .lps-btn        { background: #f0f0f0; color: #111; }
}
