/*
Theme Name: APK Rummy Theme
Theme URI: https://example.com/
Author: Custom Developer
Description: Fast, lightweight, SEO & Schema ready mobile-first WordPress theme for APK app listings.
Version: 1.0.0
Text Domain: apk-rummy-theme
*/

:root {
  --dark-blue: #0b1f51;
  --header-blue: #0f2b70;
  --btn-red: #e53935;
  --btn-red-hover: #c62828;
  --green-highlight: #2e7d32;
  --sticky-bg: #111111;
  --bg-gray: #f4f5f8;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-gray);
  color: #333;
  padding-bottom: 70px;
}

/* Header */
.site-header {
  background-color: var(--dark-blue);
  border-bottom: 2px solid #08173e;
}

.site-header .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 8px 12px;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffca28 !important;
}

.btn-red {
  background-color: var(--btn-red);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-red:hover {
  background-color: var(--btn-red-hover);
}

/* App Card Layout */
.app-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #eaeaea;
}

.app-card-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: 0;
  background-color: #d32f2f;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-icon-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.star-rating {
  color: #ffc107;
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 1px;
}

.app-title {
  color: #1a237e;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}

.app-title a {
  color: inherit;
  text-decoration: none;
}

.app-meta-item {
  font-size: 0.92rem;
  color: #b71c1c;
  font-weight: 600;
}

.app-meta-green {
  font-size: 0.92rem;
  color: var(--green-highlight);
  font-weight: 600;
}

.app-description {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-read-guide {
  background-color: var(--btn-red);
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 10px;
  width: 100%;
}

.btn-read-guide:hover {
  background-color: var(--btn-red-hover);
  color: #fff;
}

/* Floating Telegram Button */
.floating-telegram {
  position: fixed;
  right: 15px;
  bottom: 80px;
  z-index: 999;
  width: 55px;
  height: 55px;
  background-color: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}

.floating-telegram:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Sticky Footer */
.sticky-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--sticky-bg);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.btn-sticky-download {
  background-color: #00c853;
  color: #fff !important;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
}

.btn-sticky-download:hover {
  background-color: #00e676;
}

/* Pagination */
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #fff;
  border-radius: 4px;
  color: var(--dark-blue);
  text-decoration: none;
  border: 1px solid #ddd;
}

.pagination .page-numbers.current {
  background: var(--dark-blue);
  color: #fff;
  border-color: var(--dark-blue);
}
