/* Research Paper Publishing Platform - Custom Styles */

/* Smooth Transitions */
* {
    transition: all 0.2s ease-in-out;
}

:root {
  /* 🔵 Brand Blues */
  --brand-blue-900: #0A1F33;
  --brand-blue-700: #0B4F6C;
  --brand-blue-500: #1E6F9F;
  --brand-blue-300: #5FA8D3;

  /* 🟠 Brand Oranges */
  --brand-orange-700: #F57C00;
  --brand-orange-500: #FF9800;
  --brand-orange-300: #FFB74D;

  /* ⚪ Neutrals */
  --brand-white: #FFFFFF;
  --brand-gray-100: #F4F6F8;
  --brand-gray-800: #2E2E2E;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Rating Stars */
.rating-star {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
}

.rating-star.active,
.rating-star:hover {
    color: #fbbf24;
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: #6366f1;
    background-color: #f9fafb;
}

.file-upload-container.dragging {
    border-color: #6366f1;
    background-color: #eef2ff;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
    border-radius: 9999px;
}

/* Modal Overlay */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Table Responsive */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideInRight 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Search Highlight */
.search-highlight {
    background-color: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}


/* Custom Journal Styles */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-open-access {
    @apply bg-green-100 text-green-800;
}

.badge-peer-reviewed {
    @apply bg-blue-100 text-blue-800;
}

.badge-cc-by {
    @apply bg-purple-100 text-purple-800;
}

/* Article Cards */
.article-card {
    @apply bg-white rounded-xl shadow-sm border border-gray-200 hover:shadow-md transition-shadow duration-200;
}

/* Dashboard Cards */
.dashboard-card {
    @apply bg-white rounded-xl shadow-sm border border-gray-200 p-6;
}

/* Status Indicators */
.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-under-review {
    @apply bg-blue-100 text-blue-800;
}

.status-accepted {
    @apply bg-green-100 text-green-800;
}

.status-rejected {
    @apply bg-red-100 text-red-800;
}

.status-published {
    @apply bg-purple-100 text-purple-800;
}

/* Typography for academic content */
.academic-content {
    @apply text-gray-800 leading-relaxed;
}

.academic-content h1 {
    @apply text-3xl font-bold text-journal-blue mt-8 mb-4;
}

.academic-content h2 {
    @apply text-2xl font-semibold text-journal-blue mt-6 mb-3;
}

.academic-content h3 {
    @apply text-xl font-medium text-gray-800 mt-4 mb-2;
}

.academic-content p {
    @apply mb-4;
}

.academic-content ul, .academic-content ol {
    @apply mb-4 pl-5;
}

.academic-content li {
    @apply mb-2;
}

/* Math/Code blocks */
.math-equation {
    @apply bg-gray-50 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm;
}

.code-block {
    @apply bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm;
}

/* Responsive tables */
.responsive-table {
    @apply min-w-full divide-y divide-gray-200;
}

.responsive-table th {
    @apply px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.responsive-table td {
    @apply px-4 py-3 whitespace-nowrap text-sm text-gray-800;
}

/* Loading animation */
.loading-spinner {
    @apply animate-spin rounded-full border-2 border-gray-300 border-t-journal-blue h-4 w-4;
}