/* Waverate Shared Layout Styles */

:root {
    --bg-color: #0d0118;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --primary: #9333ea; /* Purple */
    --primary-hover: #a855f7;
    --accent: #d946ef; /* Magenta */
    --text-main: #ffffff;
    --text-secondary: #d1d5db;
    --border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Global Link Restoration (Prevent Purple Visited) */
a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Layout Utilities */
.glass {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Banner Styles */
.banner-tos {
    background: #a855f7;
    background-image: linear-gradient(to right, #a855f7, #d946ef);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
    z-index: 200;
}
.banner-tos a {
    text-decoration: underline;
    margin-left: 0.5rem;
    opacity: 0.9;
}
.banner-tos a:hover { opacity: 1; }



/* Global Navbar */
nav.global-nav {
    background: rgba(13, 1, 24, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.global-nav .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none;
    flex-shrink: 0;
}

nav.global-nav h1 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; }
h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; }

nav.global-nav .logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

nav.global-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-family: 'Inter', sans-serif; /* Keep navbar as Inter */
}
nav.global-nav .nav-links::-webkit-scrollbar { display: none; }

@media (max-width: 640px) {
    nav.global-nav { padding: 0.75rem 1rem; gap: 0.75rem; }
    nav.global-nav h1 { font-size: 1.2rem; }
    nav.global-nav .nav-links { gap: 1rem; margin-left: 0.5rem; }
}

nav.global-nav .nav-links a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
nav.global-nav .nav-links a:hover { color: white !important; }
nav.global-nav .nav-links a.active { color: white !important; font-weight: 600; }

/* FAQ Accordion Item */
.faq-item { border-bottom: 1px solid var(--border); width: 100%; }
.faq-trigger {
    background: none; border: none; color: white; width: 100%;
    padding: 1.25rem 0.5rem; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; font-size: 1rem; font-weight: 600; text-align: left;
}
.faq-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6;
}
.faq-item.active .faq-content { max-height: 200px; padding-bottom: 1.25rem; }
.faq-item.active i { transform: rotate(180deg); }

/* Global Footer */
footer.global-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}
footer.global-footer ul { list-style: none; padding: 0; }
footer.global-footer a { color: var(--text-secondary) !important; transition: color 0.2s; }
footer.global-footer a:hover { color: var(--primary-hover) !important; }
footer.global-footer h4 { color: white; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }

.footer-logo img {
    max-width: 32px !important;
    height: 32px !important;
    margin-right: 8px;
    border-radius: 8px;
}


/* Native Utility Polyfill (Tailwind-Lite) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) { 
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } 
}

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-20 { padding-top: 5rem; }
.pb-32 { padding-bottom: 8rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.mt-auto { margin-top: auto; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-20 { margin-top: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-24 { margin-bottom: 6rem; }

.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-tiny { font-size: 10px; }

.text-center { text-align: center; }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: #ffffff; }
.text-purple-400 { color: #c084fc; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

.bg-purple-dim { background-color: rgba(147, 51, 234, 0.1); }
.bg-purple-600 { background-color: #9333ea; }
.hover\:bg-purple-500:hover { background-color: #a855f7; }
.border-purple-dim { border-color: rgba(168, 85, 247, 0.2); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Custom Components */
.apple-store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: black !important;
    padding: 1rem 2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.apple-store-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.2);
    background: #f8f8f8;
}
.apple-store-btn i { font-size: 1.5rem; }

/* Forms */
.form-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    color: white;
    font-weight: 800;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(147,51,234,0.3);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 51, 234, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-purple { background: rgba(147, 51, 234, 0.1); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.2); }
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.icon-pink { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }
.icon-yellow { background: rgba(234, 179, 8, 0.1); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }

/* iPhone Device Frame */
.iphone-frame {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 12px solid #2d2d2d;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 30px 60px -30px rgba(0,0,0,0.6);
    overflow: hidden;
}
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #2d2d2d;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}
.iphone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Dashboard UI */
.btn-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Bugboard Specific */
.bug-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bug-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}
.bug-card:hover { border-color: rgba(255,255,255,0.15); }

/* Status Pillars */
.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-fixed {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-fixed::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }

.status-review {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.status-review::before { background: #facc15; box-shadow: 0 0 8px #facc15; }

/* Refined Upvote Badge */
.upvote-badge {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.upvote-badge.inactive {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}
.upvote-badge.inactive:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.upvote-badge.active {
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    border: none;
}
.upvote-badge.active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.4);
}

/* Modern Admin Actions */
.btn-action-status {
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}
.btn-action-status.admin-fix {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.05);
}
.btn-action-status.admin-fix:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}
.btn-action-status.admin-reopen {
    color: #f87171;
    background: rgba(239, 68, 68, 0.05);
}
.btn-action-status.admin-reopen:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Legal Page Styling */
.legal-article {
    line-height: 1.8;
}
.legal-article h2, .legal-article h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: white;
}
.legal-article p {
    margin-bottom: 1.5rem;
}
.legal-article section {
    position: relative;
    padding: 1rem 0;
}
.legal-article section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.05), transparent);
}

/* iOS Pulsing Indicator */
.ios-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 6px 14px;
}
.pulse-dot-container {
    position: relative;
    width: 8px;
    height: 8px;
}
.pulse-dot-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 8px #a855f7;
}
.pulse-dot-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1px solid #a855f7;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (min-width: 1024px) { 
    .lg\:block { display: block; } 
    .lg\:text-left { text-align: left; } 
    .lg\:flex-row { flex-direction: row; } 
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:justify-start { justify-content: flex-start; }
}

@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* Missing utility classes used in HTML */
.border-t { border-top: 1px solid var(--border); }
.border { border: 1px solid var(--border); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-green-500\/20 { border-color: rgba(34,197,94,0.2); }
.border-red-500\/20 { border-color: rgba(239,68,68,0.2); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.bg-green-500\/10 { background: rgba(34,197,94,0.1); }
.bg-red-500\/10 { background: rgba(239,68,68,0.1); }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:opacity-80:hover { opacity: 0.8; }
.transition-opacity { transition: opacity 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-all { transition: all 0.2s ease; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06); }
.blur-3xl { filter: blur(64px); }
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.-inset-4 { inset: -1rem; }
.text-\[10px\] { font-size: 10px; }
.min-h-\[120px\] { min-height: 120px; }
.resize-none { resize: none; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.uppercase { text-transform: uppercase; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-left { text-align: left; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.animate-fadein { animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.focus\:outline-none:focus { outline: none; }
.focus\:border-purple-500:focus { border-color: #a855f7; }
.shadow-purple-500\/20 { box-shadow: 0 10px 20px rgba(168,85,247,0.2); }
.object-cover { object-fit: cover; }
.bg-neutral-900 { background-color: #171717; }
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:flex-row-reverse { flex-direction: row-reverse; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-5xl { font-size: 3rem; line-height: 1.2; }
    .md\:flex-col { flex-direction: column; }
    .md\:items-center { align-items: center; }
    .md\:w-auto { width: auto; }
    .md\:mt-0 { margin-top: 0; }
    .md\:pt-0 { padding-top: 0; }
    .md\:border-t-0 { border-top: 0; }
}
