/*
Theme Name: Inshorts Feed Pro
Theme URI:  https://example.com
Author:      Your Name
Author URI:  https://example.com
Description: Inshorts-like vertical card feed with swipe up/down, social share, infinite scroll with prefetching.
Version:     1.1
License:     GNU General Public License v2 or later
Text Domain: inshorts-feed-pro
*/

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial}
body{background:#0b0f12;color:#fff;overflow:hidden}

/* Header */
/* Hide the header */
.site-header {
  display: none !important;
}

.copy-link {
  flex: 1;
  margin-top: -15px;
	margin-right: 5px;
  padding: 4px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: orange;
  color: ;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s ease, color 0.3s ease;
}
/*urdu content */
.urdu-text {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
  direction: rtl;
  text-align: right;
}


.main-wrap {
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
}

#card-container {
  height: 100%;
  max-height: 100%;
}

.card {
  height: 100%;
}


/* Card */
.card{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;height:100%;background:#0f1720;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,0.6);overflow:hidden;display:flex;flex-direction:column;transition:transform 300ms cubic-bezier(.2,.9,.2,1),opacity 250ms}
.card .media{height:36%;min-height:220px;background:#222;background-size:cover;background-position:center}
.card .content{padding:18px;overflow:auto}

/* Title and meta */
.card h2{margin:0 0 8px 0;font-size:20px;line-height:1.2}
.card p.excerpt{margin:0 0 20px 0;color:#cfd8dc}
.meta{display:flex;gap:8px;align-items:center;font-size:11px;color:#9aa6ad}

/* Footer actions */
.card-footer{margin-top:auto;padding:0px 10px;border-top:1px solid rgba(255,255,255,0.03);display:flex;justify-content:space-between;align-items:center}
.read-more{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:6px 10px;border-radius:8px;color:#fff;text-decoration:none;font-size:13px}

/* Swipe animations */
.swipe-out-up {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 200ms ease, opacity 300ms ease;
}
.swipe-out-down {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 200ms ease, opacity 300ms ease;
}
.card.moving{transition:none}

/* small helper - when next card is behind slightly */
.card.stack-behind{transform:scale(.98) translateY(12px);opacity:.98}

/* Footer categories */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: orange; /* Changed from gradient to solid orange */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  z-index: 50;
}


/* loading indicator */
/* Small screens tweaks */	
@media (max-width:640px){
  #card-container{max-width:420px}
  .card h2{margin:0 0 8px 0;font-size:16px;line-height:2}
	.card p.excerpt{margin:0 0 12px 0;color:#cfd8dc line-height:1}
}


