/* CourtTrackPro - Common Styles */
/* Version: 1.0 */

:root {
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --mint: #10b981;
    --mint-light: #6ee7b7;
    --mint-pale: #d1fae5;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --green: #10b981;
    --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--gray-900); line-height: 1.6; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-100); z-index: 1000; padding: 0 24px; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 100px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 80px; width: auto; }

/* Navigation */
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a { text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--purple); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; }
.nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--gray-100); flex-direction: column; gap: 12px; }
.nav-mobile.active { display: flex; }
.nav-mobile a { text-decoration: none; color: var(--gray-700); font-weight: 500; padding: 8px 0; }
.nav-mobile .lang-switch-mobile { display: flex; justify-content: center; gap: 12px; padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--gray-200); }
.nav-mobile .lang-switch-mobile a { font-size: 14px; padding: 6px 12px; border-radius: 4px; text-decoration: none; color: var(--gray-600); background: var(--gray-100); }
.nav-mobile .lang-switch-mobile a.active { background: var(--purple); color: var(--white); }

/* Language Switch */
.lang-switch { display: flex; gap: 8px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--gray-300); }
.lang-switch a { font-size: 13px; padding: 4px 8px; border-radius: 4px; text-decoration: none; color: var(--gray-500); }
.lang-switch a.active { background: var(--purple); color: var(--white); }

/* Buttons */
.btn-primary { background: var(--purple); color: var(--white) !important; padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background 0.2s, transform 0.2s; display: inline-block; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--purple); padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; border: 2px solid var(--purple); transition: all 0.2s; display: inline-block; cursor: pointer; }
.btn-secondary:hover { background: var(--purple); color: var(--white); }

/* Promo Banner */
.promo-banner { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%); color: var(--white); text-align: center; padding: 10px 24px; z-index: 1100; font-size: 14px; font-weight: 500; }
.promo-banner a { color: var(--white); text-decoration: underline; font-weight: 600; margin-left: 8px; }
.promo-banner a:hover { opacity: 0.9; }
.promo-banner + .header, .header.with-banner { top: 40px; }
.promo-banner ~ .nav-mobile { top: 112px; }

/* Section Labels */
.section-label { display: inline-block; background: var(--mint-pale); color: var(--mint); font-weight: 600; font-size: 14px; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px; }

/* Trial Badge */
.trial-badge { display: inline-block; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%); color: white; padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 16px; animation: badge-pulse 2s infinite; }
@keyframes badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* Footer */
.footer { padding: 40px 24px; background: var(--gray-900); color: var(--white); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer .logo img { height: 70px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-300); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--white); }

/* CTA Section */
.cta { padding: 100px 24px; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); color: var(--white); text-align: center; }
.cta h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.cta p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta .btn-primary { background: var(--mint); color: var(--gray-900) !important; }
.cta .btn-primary:hover { background: var(--mint-light); }
.cta-subtext { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 12px; }

/* Responsive visibility */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Cards */
.card { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* Check mark */
.check { color: var(--mint); font-weight: bold; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    .nav-desktop { gap: 16px; }
    .nav-desktop a { font-size: 13px; }
    .btn-primary { padding: 10px 18px; font-size: 13px; }
    .logo img { height: 70px; }
}

@media (max-width: 900px) {
    .header-inner { height: 90px; }
    .nav-desktop { gap: 10px; }
    .nav-desktop a { font-size: 12px; }
    .btn-primary { padding: 8px 14px; font-size: 12px; }
    .lang-switch { margin-left: 6px; padding-left: 6px; gap: 4px; }
    .lang-switch a { padding: 2px 5px; font-size: 10px; }
    .logo img { height: 60px; }
}

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .cta-subtext { font-size: 13px; }
}

@media (max-width: 700px) {
    .header-inner { height: 80px; }
    .nav-desktop { gap: 6px; }
    .nav-desktop a { font-size: 11px; }
    .btn-primary { padding: 6px 10px; font-size: 11px; }
    .lang-switch { display: none; }
    .logo img { height: 55px; }
    .promo-banner { font-size: 12px; padding: 8px 16px; }
    .promo-banner ~ .nav-mobile { top: 102px; }
}

@media (max-width: 550px) {
    .header-inner { height: 75px; }
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .logo img { height: 60px; }
    .promo-banner { font-size: 11px; padding: 8px 12px; }
    .promo-banner + .header, .header.with-banner { top: 36px; }
    .promo-banner ~ .nav-mobile { top: 111px; }
}

@media (max-width: 480px) {
    .cta h2 { font-size: 28px; }
    .cta p { font-size: 16px; }
    .section-label { font-size: 12px; padding: 5px 12px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
