/* Modern styling for CheckMyGiftCards.com */

:root {
  --primary-color: #0f2847;
  --secondary-color: #1a365d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f6f8fa;
  overflow-x: hidden;
}

/* Custom Bootstrap Color Override */
.text-custom-primary {
  color: var(--primary-color) !important;
}

.bg-custom-primary {
  background-color: var(--primary-color) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.btn {
  border-radius: var(--border-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}

.btn-dark {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

.btn-dark:hover {
  background-color: #000;
  border-color: #000;
  transform: translateY(-3px);
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-color);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  color: #333;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Form Elements */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 0.6rem 1rem;
  border: 1px solid #ced4da;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(15, 40, 71, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* Brand Logos */
.brand-logo {
  max-height: 40px;
  transition: var(--transition);
  filter: grayscale(20%);
  opacity: 0.8;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Streaming Section */
.streaming-section {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

/* Validate Section */
.validate-section {
  background-color: #fff;
  padding: 4rem 0;
}

.validate-header h6 {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Buy Section */
.buy-section {
  padding: 4rem 0;
}

/* Hero Section Image Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 100%;
  height: 400px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}



.card-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  border-radius: 50%;
  padding: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Snowflake Animation */
.snowflake {
  color: #4a90e2;
  font-size: 2em;
  animation: snowfall 5s linear infinite;
  opacity: 0.7;
  margin: 0 15px;
}

.snowflake:nth-child(2) {
  animation-duration: 7s;
  animation-delay: 1s;
}

.snowflake:nth-child(3) {
  animation-duration: 6s;
  animation-delay: 2s;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* Footer */
footer {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
}

.modal-header {
  border-bottom: 1px solid #eee;
}

.modal-footer {
  border-top: 1px solid #eee;
}

/* Admin Dashboard */
.dashboard-header {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submissions-table {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead th {
  background: #f8f9fa;
  font-weight: 600;
  border-color: #eee;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: rgba(15, 40, 71, 0.05);
}

.table td {
  vertical-align: middle;
  border-color: #eee;
}

/* Login Form */
.login-container {
  max-width: 450px;
  margin: 5rem auto;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* Image Preview */
.img-thumbnail {
  border-radius: var(--border-radius);
  border: 1px solid #eee;
  cursor: pointer;
  transition: var(--transition);
}

.img-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Flash Messages */
.alert {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 3rem 0;
  }
  
  .hero-section .d-flex {
    justify-content: center;
  }
  
  .hero-section img {
    margin-top: 2rem;
  }
  
  .special-offer-section {
    text-align: center;
  }
  
  .special-offer-section .btn {
    margin-bottom: 2rem;
  }
}

/* Live Reviews Section */
.reviews-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
}

.reviews-container {
  height: 400px;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.reviews-scroll {
  display: flex;
  flex-direction: column;
  animation: scrollReviews 180s linear infinite;
}

@keyframes scrollReviews {
  0% { transform: translateY(0); }
  10% { transform: translateY(0); }
  90% { transform: translateY(-100%); }
  100% { transform: translateY(-100%); }
}

.review-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 140px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.review-item .review-header {
  display: flex;
  justify-content-between;
  align-items-center;
  margin-bottom: 0.5rem;
}

.review-item .reviewer-name {
  font-weight: 600;
  color: #fff;
}

.review-item .review-rating {
  color: #ffd700;
}

.review-item .review-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.review-item .review-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.video-container {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.video-container video {
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
}

.video-container video:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 115, 220, 0.25);
}
