/* Sassy Juice Africa - Tinder-Style Design */

:root {
    --primary-red: #fd5068;
    --secondary-red: #ff6b7a;
    --accent-pink: #ff8a95;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --gradient-red: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
}

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

body {
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: var(--gradient-red);
    color: var(--text-light) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 80, 104, 0.4);
}

.login-btn::after {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
}

/* Carousel */
.carousel,
.carousel-inner,
.carousel-item {
    height: 85vh;
}

.carousel-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(0.9);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.7) 100%);
}

.display-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.display-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #d8d8d8;
    margin-top: 0.75rem;
}

/* CTA Buttons */
.btn-accent {
    background: linear-gradient(135deg, #b5179e, #ff2e83);
    border: none;
    color: #fff;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 24px rgba(255, 46, 131, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 46, 131, 0.5);
}

.btn-secondary-dark {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
}

.btn-secondary-dark:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

/* Phone Grid */
.phone-grid {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    position: absolute;
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 25px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 22px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-red);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.profile-info span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 0.5rem;
}

.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-action.rewind {
    background: #ffa500;
    color: white;
}

.btn-action.nope {
    background: #ff4757;
    color: white;
}

.btn-action.super-like {
    background: #3742fa;
    color: white;
}

.btn-action.like {
    background: #2ed573;
    color: white;
}

.btn-action.boost {
    background: #9c88ff;
    color: white;
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Phone Positioning */
.phone-1 {
    top: 10%;
    left: 10%;
    transform: rotate(-15deg);
    z-index: 6;
}

.phone-2 {
    top: 20%;
    right: 15%;
    transform: rotate(10deg);
    z-index: 5;
}

.phone-3 {
    top: 50%;
    left: 5%;
    transform: rotate(-8deg);
    z-index: 4;
}

.phone-4 {
    top: 60%;
    right: 10%;
    transform: rotate(12deg);
    z-index: 3;
}

.phone-5 {
    bottom: 20%;
    left: 20%;
    transform: rotate(-5deg);
    z-index: 2;
}

.phone-6 {
    bottom: 10%;
    right: 25%;
    transform: rotate(8deg);
    z-index: 1;
}

/* Main Content */
.main-content {
    background: #0b0b0b;
}

.lead {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-link {
    color: #bfbfbf;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b5179e, #ff2e83);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .phone-grid {
        height: 400px;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .phone-screen {
        padding: 0.75rem;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .profile-info h3 {
        font-size: 1.2rem;
    }
    
    .profile-info span {
        font-size: 1rem;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .lead {
        font-size: 1.2rem;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .phone-grid {
        height: 350px;
    }
    
    .phone-mockup {
        width: 120px;
        height: 240px;
    }
    
    .phone-screen {
        padding: 0.5rem;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .profile-info h3 {
        font-size: 1rem;
    }
    
    .profile-info span {
        font-size: 0.9rem;
    }
    
    .btn-action {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

/* Performance Optimizations */
.phone-mockup {
    will-change: transform;
}

.btn-primary {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* --- Compact Mobile UI Overrides --- */
/* Goal: smaller typography, thinner buttons/containers/cards on phones */

/* Base scaling */
html, body {
    font-size: 15px;
}

/* Payment modal polish */
.payment-modal { max-width: 28rem; }
.payment-modal .section-title { font-size: 0.95rem; letter-spacing: .2px; color: #d1d5db; margin-bottom: .5rem; }
.payment-modal .summary-bar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: .75rem; padding: .75rem; }
.payment-modal .summary-bar .plan { font-weight: 700; color: #fff; }
.payment-modal .summary-bar .price { color: #ff1493; font-weight: 800; }
.payment-modal .divider { height: 1px; background: rgba(255,255,255,.08); margin: .75rem 0; }
.payment-modal .method-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.payment-modal .method-card { 
  min-height: 88px; 
  border-radius: .75rem; 
  border: 2px solid rgba(75,85,99,.7); 
  background: rgba(31,41,55,.6); 
  color: #d1d5db; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  padding: 1rem; 
  transition: all .3s ease; 
  cursor: pointer; 
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.payment-modal .method-card:hover { 
  border-color: rgba(255,20,147,.8); 
  background: rgba(255,20,147,.12); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.payment-modal .method-card.active { 
  border-color: #ff1493; 
  color: #fff; 
  background: rgba(255,20,147,.2); 
  box-shadow: 0 0 0 2px rgba(255,20,147,.4), 0 4px 12px rgba(0,0,0,.4);
  transform: translateY(-1px);
}
.payment-modal .method-card::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(75,85,99,.5);
  border-radius: 50%;
  background: transparent;
  transition: all .3s ease;
}
.payment-modal .method-card.active::before {
  border-color: #ff1493;
  background: #ff1493;
}
.payment-modal .method-card.active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  color: white;
  font-size: 10px;
  font-weight: bold;
}
.payment-modal .help-box { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35); border-radius: .75rem; padding: .75rem; }
.payment-modal .action-bar { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: .75rem; 
  align-items: stretch; 
  width: 100%; 
  margin-top: 1rem;
}
.payment-modal .action-bar > button,
.payment-modal .action-bar > a { 
  width: 100%; 
  min-height: 48px; 
  display: inline-flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  font-weight: 600 !important; 
  border-radius: .75rem !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.payment-modal .action-bar .btn-cancel { 
  background: rgba(75,85,99,.9) !important; 
  color: #fff !important; 
  border: 2px solid rgba(75,85,99,.8) !important; 
  box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
  transition: all .3s ease !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
.payment-modal .action-bar .btn-cancel:hover { 
  background: rgba(75,85,99,1) !important; 
  border-color: rgba(75,85,99,1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
}
.payment-modal .action-bar .btn-pay { 
  background: linear-gradient(135deg, #ff1493, #8b00ff) !important; 
  color: #fff !important; 
  border: none !important; 
  box-shadow: 0 4px 12px rgba(255,20,147,.3) !important;
  transition: all .3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
.payment-modal .action-bar .btn-pay:hover { 
  background: linear-gradient(135deg, #ff1493, #8b00ff) !important; 
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(255,20,147,.4) !important;
}
.payment-modal .action-bar .btn-pay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.payment-modal .action-bar .btn-pay:hover::before {
  left: 100%;
}

/* Force button styling to override any conflicts */
.payment-modal button.btn-cancel,
.payment-modal button.btn-pay {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.payment-modal button.btn-cancel {
  background: rgba(75,85,99,.9) !important;
  color: #fff !important;
  border: 2px solid rgba(75,85,99,.8) !important;
}

.payment-modal button.btn-pay {
  background: linear-gradient(135deg, #ff1493, #8b00ff) !important;
  color: #fff !important;
  border: none !important;
}

/* Additional button styling to ensure they look like buttons */
#payBtn, 
button[onclick="closePaymentModal()"] {
  background: linear-gradient(135deg, #ff1493, #8b00ff) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  box-shadow: 0 4px 12px rgba(255,20,147,.3) !important;
  transition: all 0.3s ease !important;
}

button[onclick="closePaymentModal()"] {
  background: rgba(75,85,99,.9) !important;
  border: 2px solid rgba(75,85,99,.8) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
}

/* Force gradient background for pay button */
.payment-modal .btn-pay,
.btn-pay {
  background: linear-gradient(135deg, #ff1493, #8b00ff) !important;
  background-image: linear-gradient(135deg, #ff1493, #8b00ff) !important;
  -webkit-background-clip: padding-box !important;
  background-clip: padding-box !important;
}
.payment-modal .action-bar-sticky { position: static; padding-top: .5rem; background: transparent; }
.payment-modal .trust-badges { margin-top: .5rem; }
.payment-modal .trust-badges img { display: block; max-width: 340px; width: 100%; height: auto; margin: 0 auto; border-radius: .5rem; }
.payment-modal .trust-badges .caption { text-align: center; color: #d1d5db; font-size: .8rem; margin-top: .4rem; }

@media (max-width: 640px) {
  .payment-modal { max-width: 22rem; padding: .875rem !important; }
  .payment-modal .method-grid { grid-template-columns: 1fr; }
  /* keep action buttons on one row on mobile for alignment */
  .payment-modal .action-bar { grid-template-columns: 1fr 1fr; gap: .75rem; }
}

/* Headings scale down slightly globally */
h1 { font-size: 1.9rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.35; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

/* Buttons: thinner by default */
button, .btn, .login-btn, .btn-accent, .btn-secondary-dark, .quick-filter-btn, .quick-msg-btn, .neon-glow {
    padding: 0.45rem 0.8rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    line-height: 1.2;
}

/* Inputs */
input, select, textarea {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Cards/containers */
.glass-effect, .card, .table-container, .stat-card, .prose, .footer, .sidebar {
    padding: 0.75rem !important;
    border-width: 1px !important;
}

/* Lists and grid spacing lighten up */
ul, ol { margin-left: 1rem; }

/* Mobile-first tightening */
@media (max-width: 640px) {
    html, body { font-size: 14px; }

    /* Headings even smaller on phones */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }

    /* Tighten navigation height */
    nav, .navbar, .glass-effect.navbar, .fixed.top-0 { min-height: 48px; }

    /* Buttons ultra compact */
    button, .btn, .login-btn, .btn-accent, .btn-secondary-dark, .quick-filter-btn, .quick-msg-btn, .neon-glow {
        padding: 0.4rem 0.65rem !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
    }

    /* Form controls */
    input, select, textarea {
        padding: 0.4rem 0.55rem;
        font-size: 0.9rem;
    }

    /* Cards and sections */
    .glass-effect, .card, .table-container, .stat-card, .prose, .sidebar {
        padding: 0.6rem !important;
    }

    /* Reduce gaps commonly used by Tailwind utility classes */
    [class*="gap-"] { gap: 0.5rem !important; }
    [class*="space-x-"] > * + * { margin-left: 0.5rem !important; }
    [class*="space-y-"] > * + * { margin-top: 0.5rem !important; }

    /* Make footer tighter */
    footer { padding-top: 1rem; padding-bottom: 1rem; }
}
