/* ------------------------------------------------------------------
   Minimal CSS-Reset  (prevents default gaps that caused black strip)
   ------------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure body acts as the main flex container exactly as our
   layout expects (navigation + main content, no extra space) */
body {
    display: flex;
}

/* Boarding Pass Style Components */

/* CSS Custom Properties for theme colors */
:root {
    /* Original autopilot colors */
    --autopilot-primary: #85d3c3;
    --autopilot-primary-light: #a8e0d5;
    --autopilot-primary-dark: #6bb5a5;
    
    /* FoundersFleet colors from tailwind-config.js */
    --primary: #000000;
    --primary-hover: #333333;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #E5E5E5;
    --section-bg: #FAFAFA;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --accurate: #22C55E;
    --inaccurate: #DC2626;
}

/* FoundersFleet utility classes to use while Tailwind is disabled */
.bg-background { background-color: var(--background); }
.bg-card-bg { background-color: var(--card-bg); }
.bg-primary { background-color: var(--primary); }
.bg-section-bg { background-color: var(--section-bg); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }
.bg-info { background-color: var(--info); }

/* Hover state helper for dark primary */
.bg-primary-hover            { background-color: var(--primary-hover); }

/* ----- Tailwind-like gradient / solid background helpers (minimal) ------- */
/* Gradient helpers used by “Welcome to FoundersFleet!” banner  */
.bg-gradient-to-r            { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-primary                { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,0,0,0)); }
.to-gray-800                 { --tw-gradient-to: #1F2937; }

/* Solid colour helpers frequently referenced */
.bg-gray-800 { background-color: #1F2937; }   /* Tailwind gray-800 */
.bg-black    { background-color: #000000; }

/* Generic text-color helpers used in views */
.text-white       { color: #FFFFFF; }
.text-white\/70   { color: rgba(255,255,255,0.70); }
.text-white\/80   { color: rgba(255,255,255,0.80); }
.text-white\/90   { color: rgba(255,255,255,0.90); }

/* Button/hover colours for primary banner */
.hover\\:bg-primary-hover:hover { background-color: var(--primary-hover); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: #FFFFFF; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }

.border-border { border-color: var(--border); }

/* Base boarding pass card */
.boarding-pass {
    background: #FFFFFF;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: visible;
    margin: 0 12px; /* Space for notches */
}

/* Boarding pass sections */
.boarding-pass-header {
    padding: 32px;
    position: relative;
}

/* Boarding pass tag positioning for founder cards */
.boarding-pass-header .boarding-pass-tag {
    position: absolute;
    top: 24px;
    right: 24px;
}

.boarding-pass-body {
    padding: 0 32px 32px 32px;
}

.boarding-pass-footer {
    padding: 24px 32px;
    background: #F5F5F5;
    border-radius: 0 0 20px 20px;
}

/* Divider with notches */
.boarding-pass-divider {
    position: relative;
    height: 40px; /* Height for notch placement */
    margin: 0; /* No negative margin */
    overflow: visible;
}

/* Dotted line in the middle */
.boarding-pass-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        to right,
        #E5E5E5,
        #E5E5E5 5px,
        transparent 5px,
        transparent 10px
    );
}

/* Left notch */
.boarding-pass-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Right notch - using a span element */
.boarding-pass-notch {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Step number styling */
.boarding-pass-step {
    position: absolute;
    top: 24px;
    right: 32px;
    text-align: right;
}

.boarding-pass-step-label {
    font-size: 12px;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.boarding-pass-step-number {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

/* Icon in upper left */
.boarding-pass-icon-corner {
    position: absolute;
    top: 24px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Notched Logo Style */
.logo-notched {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: visible;
}

.logo-notched::before,
.logo-notched::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #161616;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.logo-notched::before {
    left: -5px;
}

.logo-notched::after {
    right: -5px;
}

/* Main content area */
.boarding-pass-content {
    padding-top: 80px; /* Space for icon and step */
}

/* Tag/Badge styles */
.boarding-pass-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #000000;
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Outline style tag */
.boarding-pass-tag-outline {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: transparent;
    color: #666666;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Icon for links */
.boarding-pass-link-icon {
    width: 40px;
    height: 40px;
    background: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Value styles */
.boarding-pass-value {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.boarding-pass-value-large {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

/* Responsive spacing utilities */
.boarding-pass-spacing-sm { padding: 16px; }
.boarding-pass-spacing-md { padding: 24px; }
.boarding-pass-spacing-lg { padding: 32px; }
.boarding-pass-spacing-xl { padding: 40px; }

/* Frosted Glass Hero Card */
.hero-frosted {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.hero-frosted::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.hero-frosted:hover::before {
    left: 100%;
}

/* Notched Section Styles */
.boarding-pass-body.p-0 {
    padding: 0 !important;
    position: relative;
}

.boarding-pass-body.p-0 > a,
.boarding-pass-body.p-0 > button {
    position: relative;
}

/* Add dotted line between sections */
.boarding-pass-body.p-0 > a:not(:last-child),
.boarding-pass-body.p-0 > button:not(:last-child) {
    border-bottom: 1px dashed #E5E5E5;
    position: relative;
}

/* Add notches on the dotted lines */
.boarding-pass-body.p-0 > a:not(:last-child)::after,
.boarding-pass-body.p-0 > button:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -12px;
    width: 24px;
    height: 24px;
    background: #161616;
    border-radius: 50%;
    bottom: -12px;
    z-index: 2;
}

.boarding-pass-body.p-0 > a:not(:last-child)::before,
.boarding-pass-body.p-0 > button:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -12px;
    width: 24px;
    height: 24px;
    background: #161616;
    border-radius: 50%;
    bottom: -12px;
    z-index: 2;
}

/* Ensure last item has rounded bottom corners */
.boarding-pass-body.p-0 > a:last-child,
.boarding-pass-body.p-0 > button:last-child {
    border-radius: 0 0 20px 20px;
}



/* Logo notches update */
.logo-notched::before,
.logo-notched::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #161616;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.logo-notched::before {
    left: -4px;
}

.logo-notched::after {
    right: -4px;
}

/* Notches in boarding pass sections */
.boarding-pass-body.p-0 > a:not(:last-child)::after,
.boarding-pass-body.p-0 > button:not(:last-child)::after {
    background: #161616;
}

.boarding-pass-body.p-0 > a:not(:last-child)::before,
.boarding-pass-body.p-0 > button:not(:last-child)::before {
    background: #161616;
}

/* Frosted Container Style - Main content area with frosted glass effect */
.frosted-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 0 rgba(255,255,255,0.05);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 48px;
}

/* Ticker card style - compact frosted container for home page tickers */
.ticker-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 0 rgba(255,255,255,0.05);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Hero text within frosted container */
.frosted-container-hero {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Content area within frosted container */
.frosted-container-content {
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Ticker card content - compact padding for home page ticker cards */
.ticker-card-content {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 20px;
}

/* Subtle container style for AutoPilot and dark theme pages */
.subtle-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle container sections */
.subtle-container-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subtle-container-body {
    padding: 24px;
}

.subtle-container-footer {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 20px 20px;
}

/* AutoPilot specific styles */
.autopilot-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.autopilot-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* AutoPilot icon containers */
.autopilot-icon-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Text colors for subtle containers */
.subtle-container h1,
.subtle-container h2,
.subtle-container h3,
.subtle-container h4,
.subtle-container h5,
.subtle-container h6,
.autopilot-container h1,
.autopilot-container h2,
.autopilot-container h3,
.autopilot-container h4,
.autopilot-container h5,
.autopilot-container h6 {
    color: #FFFFFF;
}

.subtle-container p,
.subtle-container span,
.subtle-container div,
.autopilot-container p,
.autopilot-container span,
.autopilot-container div {
    color: rgba(255, 255, 255, 0.8);
}

/* Additional FoundersFleet specific styles */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Progress ring animation */
@keyframes progress {
    from { stroke-dashoffset: 251.2; }
    to { stroke-dashoffset: var(--progress-offset, 0); }
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: progress 1s ease-out forwards;
}

/* Pulse animation for notifications and status indicators */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ------------------------------------------------------------------
   Additional FoundersFleet Helpers for Squads Page
   ------------------------------------------------------------------ */

/* Line-clamp utilities (mimic tailwind) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Simple hover translate helpers (used on squad cards) */
.hover\\:translate-y-[-2px]:hover,
.squad-card:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease-out;
}

/* Section background utility */
.bg-section-bg { background-color: var(--section-bg); }

/* Additional text-colour helpers */
.text-text-primary   { color: var(--text-primary); }
.text-text-secondary { color: var(--text-secondary); }
.text-text-muted     { color: var(--text-muted); }

/* Primary button hover utility already referenced in views */
.hover\\:bg-primary-hover:hover { background-color: var(--primary-hover); }

/* ------------------------------------------------------------------
   Contacts-page specific helpers
   ------------------------------------------------------------------ */

/* 1. Founder card hover (translate + shadow) */
.founder-card:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 2. Tailwind-like bg-primary/10 utility (10% opacity of primary) */
.bg-primary\\/10 { background-color: rgba(0, 0, 0, 0.10); }

/* 3. Hidden helper for JS tab switching (overrides everything!) */
.hidden { display: none !important; }

/* 4. Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 5. Slightly smaller verification signature icon when used in badges */
.fa-signature.text-primary { font-size: 0.75em; vertical-align: middle; }

/***********************************************************************
   Tools Page Helpers
***********************************************************************/

/* ------------------------------------------------------------------
   1. Tool Card Hover (translateY + subtle shadow)
   ------------------------------------------------------------------ */
.tool-card {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
                opacity 0.15s ease-out;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* ------------------------------------------------------------------
   2. FF-Pick Badge (utility class if views choose to switch)
   ------------------------------------------------------------------ */
.ff-pick-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ------------------------------------------------------------------
   3. Category Filtering – smooth show / hide
   ------------------------------------------------------------------ */
.tool-card[style*="display: none"] {
    /* When JS sets display none, keep opacity transition smooth */
    opacity: 0;
    transform: scale(0.97);
}
.tool-card[style*="display: block"] {
    opacity: 1;
    transform: scale(1);
}

/* ------------------------------------------------------------------
   4. Responsive padding tweaks
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .tool-card {
        padding: 1rem !important;          /* override lg padding */
    }
}

/* ------------------------------------------------------------------
   5. Extra background-colour utilities used by icon squares
   ------------------------------------------------------------------ */
.bg-blue-500   { background-color: #3B82F6; }
.bg-blue-600   { background-color: #2563EB; }
.bg-purple-600 { background-color: #7C3AED; }
.bg-indigo-600 { background-color: #4F46E5; }
.bg-orange-600 { background-color: #EA580C; }
.bg-gray-800   { background-color: #1F2937; }  /* already existed but ensuring */
.bg-gray-900   { background-color: #111827; }
.bg-yellow-600 { background-color: #CA8A04; }
.bg-green-600  { background-color: #16A34A; }
.bg-teal-600   { background-color: #0D9488; }
.bg-red-600    { background-color: #DC2626; }

/***********************************************************************
   Search Page Specific Styles
***********************************************************************/

/* ---------------------------------------------------------------
   1. Highlighted Search Terms
   --------------------------------------------------------------- */
.highlight {
    background-color: #FEF3C7;          /* Tailwind amber-100 */
    font-weight: 500;
}

/* ---------------------------------------------------------------
   2. Result Item Hover Effects
   --------------------------------------------------------------- */
.result-item {
    /* ensure smooth hover like other cards */
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* ---------------------------------------------------------------
   3. Filter Button Animations
   --------------------------------------------------------------- */
.filter-btn {
    transition: background-color 0.15s ease, color 0.15s ease,
                border-color 0.15s ease, transform 0.15s ease;
}
.filter-btn:hover {
    transform: translateY(-1px);
}

/* Active filter button updates (JS adds bg-primary/text-white) handled in views */

/* ---------------------------------------------------------------
   4. Search Input Focus State
   --------------------------------------------------------------- */
#search-input {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------------------------
   5. Result Type Icon Background Utilities
   --------------------------------------------------------------- */
.icon-objective   { background-color: #000000; }   /* black square */
.icon-mission     { background-color: var(--primary); }
.icon-squad       { background-color: #000000; }
.icon-founder     { background-color: var(--primary); border-radius: 9999px; }
.icon-app         { background-image: linear-gradient(to right, #22C55E, #14B8A6); }
.icon-tool        { background-image: linear-gradient(to right, #4F46E5, #6366F1); }
.icon-message     { background-color: var(--primary); }

/* Ensure icons stay centre aligned */
[class^="icon-"],
[class*=" icon-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

/* ---------------------------------------------------------------
   6. Empty / No-Results States
   --------------------------------------------------------------- */
#empty-state,
#no-results {
    color: var(--text-secondary);
}
#empty-state i,
#no-results i {
    opacity: 0.3;
}

