/* Maine Lottery - Main Stylesheet */
:root {
  --primary-red: #7c0000;
  --dark-red: #580000;
  --bright-red: #cf0000;
  --gold: #ffcc31;
  --dark-bg: #1a1a1a;
  --card-dark: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand img {
  width: 140px;
  transition: transform 0.3s;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.nav-link.active {
  color: var(--gold) !important;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: 76px;
  background: #191919;
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li {
  display: inline-block;
}

/* Hero Section */
.hero-section {
  display: flex;
  min-height: 400px;
}

.hero-left {
  flex: 1;
  background: url('../images/bg-lottery.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-left img {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 100%;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.hero-right {
  flex: 1;
  background: linear-gradient(180deg, var(--bright-red) 0%, var(--primary-red) 100%);
  padding: 3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prize-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-amount {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.jackpot-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: super;
}

.jackpot-amount .amount {
  color: var(--gold);
}

.result-date {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Balls */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0 4px;
  background: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.ball:hover {
  transform: scale(1.1);
}

.ball-red {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 3px;
  background: #f61919;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.draw-info {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.btn-results {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #fff;
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-results:hover {
  background: var(--gold);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* App Section */
.app-section {
  padding: 4rem 0;
}

.app-section .app-image {
  width: 75%;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.app-section h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-play {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--bright-red);
  color: var(--bright-red);
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

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

/* Odds Section */
.odds-section {
  padding: 2rem 0 4rem;
}

.odds-section h5 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* Cards Section */
.promo-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Live Draw Section */
.livedraw-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}

.countdown-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 15px;
  padding: 2.5rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.countdown-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.countdown-unit {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  min-width: 80px;
}

.countdown-unit .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.countdown-unit .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.live-result-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.live-result-header {
  background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%);
  padding: 1rem 2rem;
  text-align: center;
}

.live-result-header h3 {
  color: #333;
  font-weight: 700;
  margin: 0;
}

.live-result-body {
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.prize-section {
  margin-bottom: 1.5rem;
}

.prize-label-live {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.prize-label-live.first {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
}

.prize-label-live.second {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #333;
}

.prize-label-live.third {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
}

.ball-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  margin: 0 6px;
  background: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: #222;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 -3px 6px rgba(0,0,0,0.1);
  animation: ballPop 0.5s ease-out;
}

@keyframes ballPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.ball-live.revealing {
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Results Table */
.results-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.results-table thead {
  background: linear-gradient(135deg, var(--gold) 0%, #e6b800 100%);
}

.results-table thead th {
  padding: 1rem;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.results-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.results-table tbody tr:hover {
  background: #f8f8f8;
}

.results-table tbody td {
  padding: 0.8rem 1rem;
  text-align: center;
  font-weight: 500;
}

.results-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Footer */
footer {
  background: var(--primary-red);
  color: #fff;
  padding: 3rem 0;
}

footer .logo-foot {
  width: 200px;
  margin-bottom: 1rem;
}

footer .foot-text {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
}

footer .footer-links p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
}

footer .footer-links p:hover {
  color: var(--gold);
}

footer .footer-links .section-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer .social-icons i {
  font-size: 2rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

footer .social-icons i:hover {
  color: var(--gold);
}

.copyright {
  background: var(--dark-red);
  color: #fff;
  padding: 0.8rem 0;
  text-align: center;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }
  
  .hero-left {
    min-height: 250px;
    padding: 2rem;
  }
  
  .hero-left img {
    width: 200px;
  }
  
  .hero-right {
    padding: 2rem;
  }
  
  .jackpot-amount {
    font-size: 2.5rem;
  }
  
  .ball {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .countdown-timer {
    gap: 0.5rem;
  }
  
  .countdown-unit {
    padding: 0.8rem 1rem;
    min-width: 60px;
  }
  
  .countdown-unit .number {
    font-size: 1.8rem;
  }
  
  .ball-live {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .navbar-brand img {
    width: 100px;
  }
  
  .breadcrumbs {
    margin-top: 66px;
  }
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
  background: #fff5f5;
  color: var(--primary-red);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

/* Payment logo */
.payment-logo {
  width: 200px;
  max-width: 100%;
}

/* Status indicator */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: rgba(255,0,0,0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff0000;
}

.status-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-waiting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: rgba(255,204,49,0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
