/* Serbian News Portal (Vesti24 - Balkan Breaking News) */
:root {
  --news-red: #d32f2f;
  --news-darkred: #b71c1c;
  --news-bg: #f4f6f8;
  --news-card-bg: #ffffff;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--news-bg);
  font-family: var(--font-main);
  color: var(--text-dark);
}

/* Cookie Consent Overlay Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUpCookie 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.cookie-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cookie-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 25px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cookie-btn:active {
  transform: scale(0.96);
}

.cookie-btn.accept {
  background: var(--news-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.cookie-btn.reject {
  background: #e5e7eb;
  color: #374151;
}

/* Live Selfie Camera Target Scanner Modal */
.camera-scanner-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.camera-scanner-modal.active {
  display: flex;
}

.scanner-card {
  background: #09090b;
  border: 2px solid #ef4444;
  border-radius: 24px;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.6);
  color: #fff;
}

.scanner-header {
  padding: 14px 16px;
  background: #18181b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.status-live {
  color: #ef4444;
  animation: blinkStatus 1s infinite alternate;
}

@keyframes blinkStatus {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.video-container {
  position: relative;
  width: 100%;
  height: 320px;
  background: #000;
  overflow: hidden;
}

#scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera view */
}

.scanner-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 2px dashed #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
  animation: rotateReticle 8s infinite linear;
}

@keyframes rotateReticle {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ef4444;
  box-shadow: 0 0 15px #ef4444;
  animation: scanMove 2s infinite ease-in-out alternate;
}

@keyframes scanMove {
  0% { top: 10%; }
  100% { top: 90%; }
}

.target-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.scanner-footer {
  padding: 16px;
  text-align: center;
}

.scanner-footer p {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 12px;
}

.scanner-close-btn {
  width: 100%;
  padding: 12px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 800;
  cursor: pointer;
}

/* News Header */
.news-header {
  background: #ffffff;
  border-bottom: 2px solid var(--news-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.top-bar {
  background: #111827;
  color: #9ca3af;
  font-size: 0.75rem;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-bar {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-logo span {
  background: var(--news-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1.3rem;
}

.live-badge {
  background: var(--news-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  animation: pulseLive 1.5s infinite alternate;
}

@keyframes pulseLive {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Categories Navbar */
.nav-categories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 16px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-item.active {
  color: var(--news-red);
  border-bottom: 2px solid var(--news-red);
}

/* Breaking News Ticker */
.breaking-ticker {
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.ticker-badge {
  background: var(--news-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ticker-text {
  color: #991b1b;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main Article Layout */
.main-news-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

.featured-card {
  background: var(--news-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.article-meta-bar {
  padding: 16px 16px 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-category {
  color: var(--news-red);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.article-title {
  padding: 0 16px 8px 16px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-dark);
  cursor: pointer;
}

.article-subheadline {
  padding: 0 16px 16px 16px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Video Thumbnail Wrapper */
.article-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-thumb-wrapper:hover .article-thumb-img {
  transform: scale(1.03);
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--news-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(211, 47, 47, 0.9);
  animation: pulsePlay 2s infinite ease-in-out;
}

.play-icon {
  font-size: 2.2rem;
  margin-left: 4px;
}

@keyframes pulsePlay {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.article-content {
  padding: 20px 16px;
}

.btn-read-more {
  width: 100%;
  min-height: 54px;
  background: var(--news-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-read-more:active {
  background: var(--news-darkred);
}

.article-body-text p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Related Feed Items */
.related-section {
  margin-top: 24px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 4px solid var(--news-red);
}

.news-feed-item {
  background: var(--news-card-bg);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  cursor: pointer;
}

.feed-img-placeholder {
  width: 80px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feed-text-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}

.feed-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mobile Quick Panic Corner Trigger */
.mobile-panic-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Active Prank Mobile Overlay */
.active-prank-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
  display: none;
}

.active-prank-overlay.active {
  display: block;
}

/* Touch Evasive Button */
.evasive-btn {
  position: fixed;
  z-index: 100;
  pointer-events: auto;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
  transition: top 0.12s ease-out, left 0.12s ease-out;
}

/* Fake Mobile Alert Dialog */
.fake-mobile-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 85%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 16px;
  color: #000;
  text-align: center;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dialogPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fake-mobile-dialog.active {
  display: flex;
}

@keyframes dialogPop {
  to { transform: translate(-50%, -50%) scale(1); }
}

.dialog-header {
  padding: 20px 16px 12px 16px;
}

.dialog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dialog-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.4;
}

.dialog-buttons {
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.dialog-btn {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #007aff;
  cursor: pointer;
}

.dialog-btn.danger {
  color: #dc2626;
}

/* Fake Incoming Call Screen */
.incoming-call-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #09090b;
  color: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px 80px 24px;
}

.incoming-call-screen.active {
  display: flex;
}

.caller-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 16px;
}

.caller-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.caller-subtitle {
  color: #a1a1aa;
  font-size: 1rem;
}

.call-actions {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 300px;
}

.call-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

.call-decline { background: #ef4444; }
.call-accept { background: #22c55e; }

/* Notification Toasts */
.toast-container {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #18181b;
  color: #fff;
  border-left: 4px solid var(--news-red);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.88rem;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Panic Control Modal */
.panic-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.panic-modal.active {
  display: flex;
}

.panic-card {
  background: #fff;
  color: #111827;
  border-radius: 20px;
  padding: 28px 20px;
  max-width: 440px;
  width: 100%;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.panic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--news-red);
}

.panic-header h2 {
  font-size: 1.35rem;
}

.panic-body p {
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.panic-features-list {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 12px 18px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.panic-features-list li {
  margin-bottom: 4px;
}

.panic-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-secondary {
  flex: 1;
  background: #e5e7eb;
  color: #1f2937;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
}

.strobe-active {
  animation: strobeAnim 0.5s infinite alternate;
}

@keyframes strobeAnim {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
