
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom base styles */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
/* Mobile optimizations */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }
    
    .p-6 {
        padding: 1rem;
    }

    /* Mobile-specific touch targets */
    button, [role="button"], a[href], .nav-link, .action-item {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }

    /* Bottom navigation bar */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #4b5563;
        font-size: 0.75rem;
        min-width: 48px;
        min-height: 48px;
    }

    .bottom-nav a.active {
        color: #1e40af;
    }

    /* Context panel as bottom sheet */
    .context-panel {
        position: fixed;
        bottom: 56px;
        left: 0;
        right: 0;
        max-height: 70vh;
        background: white;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        padding: 16px;
        transform: translateY(calc(100% - 80px));
        transition: transform 0.3s ease;
    }

    .context-panel.expanded {
        transform: translateY(0);
    }
/* Touch targets */
    button, [role="button"], .nav-link, .action-item {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }

    /* Floating action bar */
    .mobile-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        justify-content: space-around;
        padding: 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    /* Collapsible panels */
    .panel-collapse {
        display: none;
    }
    .panel-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px;
        background: #f8fafc;
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }
}
/* Custom components */
.evidence-badge {
    @apply px-2 py-1 text-xs font-medium rounded-full;
}

.evidence-badge-nuclear {
    @apply bg-red-100 text-red-800;
}

.evidence-badge-supporting {
    @apply bg-blue-100 text-blue-800;
}

.timeline-item {
    @apply relative pl-8 pb-8 border-l-2 border-gray-200;
}

.timeline-item:last-child {
    @apply pb-0;
}

.timeline-dot {
    @apply absolute w-4 h-4 rounded-full -left-2 border-2 border-white;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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