/* 
 * style.css - Premium Pastel Design System for AidenAds
 * Setup by Cephy | Part of REX_AIDENADS_PHP_SPEC
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --bg:          #F7F5F2;        /* warm off-white premium paper */
  --surface:     #FFFFFF;        /* card surface */
  --surface-2:   #F0EDE8;        /* input & secondary background */
  --border:      #E4DED6;        /* warm border */
  
  --text:        #1C1A18;        /* near black */
  --muted:       #7A756E;        /* warm gray */
  --subtle:      #B5AFA8;        /* soft labels */
  
  --accent:      #B08D5B;        /* bronze primary */
  --accent-hover:#967549;        /* hover bronze */
  --accent-lt:   #F0E9DF;        /* accent light */
  
  --green:       #6B7F6B;        /* sage green success */
  --green-lt:    #EAF2ED;
  --rose:        #C9A0A0;        /* muted rose danger */
  --rose-lt:     #F7EAEA;
  --amber:       #B08A3E;        /* warning gold */
  --amber-lt:    #F7F1E3;
  
  --shadow-sm:   0 2px 6px rgba(44, 62, 53, 0.04);
  --shadow-md:   0 8px 24px rgba(44, 62, 53, 0.06);
  --shadow-lg:   0 16px 48px rgba(44, 62, 53, 0.10);
  
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  
  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text);
}

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

a:hover {
  color: var(--accent-hover);
}

/* Interactive CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-success {
  background: var(--green);
  color: #FFFFFF;
}

.btn-success:hover {
  background: #5A6D5A;
}

.btn-danger {
  background: var(--rose);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #B68D8D;
}

.btn-disabled {
  background: var(--subtle);
  color: #FFFFFF;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Premium Card Layouts */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Beautiful Inputs & Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(176, 141, 91, 0.15);
}

/* Soft Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge-trial { background: var(--amber-lt); color: var(--amber); }
.badge-starter { background: var(--accent-lt); color: var(--accent); }
.badge-growth { background: var(--green-lt); color: var(--green); }
.badge-pro { background: #EAE6FC; color: #6D4CFC; }
.badge-active { background: var(--green-lt); color: var(--green); }
.badge-paused { background: var(--surface-2); color: var(--muted); }
.badge-expired { background: var(--rose-lt); color: var(--rose); }

/* Premium Grids & Flex */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Navigation & Layout Wrapper */
.header-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 24px;
  letter-spacing: -0.5px;
  user-select: none;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

/* Modal Overlay Upgrade styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 26, 24, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Subtle Micro-Animations */
@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 127, 107, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(107, 127, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 127, 107, 0); }
}

.pulse-badge {
  animation: pulseGlow 2s infinite;
}
