/**
 * Journal Archive Styles
 * Extracted from index.php lines 9991-10320
 * Contains journal search app styles
 */

/* Journal Archive Styles */
.journal-search-app {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}
.journal-app-header {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #34a853 100%);
    color: white;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.journal-app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.journal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.journal-header-title h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}
.journal-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}
.journal-header-stats {
    display: flex;
    gap: 20px;
}
.journal-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}
.journal-stat-item span:first-child {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}
.journal-stat-value {
    font-size: 24px;
    font-weight: 700;
}
.journal-search-section {
    padding: 25px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}
.journal-search-box {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.journal-search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s;
}
.journal-search-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.journal-btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.journal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}
.journal-mode-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}
.journal-mode-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.journal-mode-btn:hover {
    background: #e2e8f0;
}
.journal-mode-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}
.journal-mode-info {
    margin-top: 12px;
    padding: 10px 15px;
    background: #f0f7ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1a73e8;
    text-align: center;
    border-left: 3px solid #1a73e8;
}
.journal-results-section {
    padding: 25px;
}
.journal-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.journal-results-info {
    font-size: 15px;
    color: #64748b;
}
.journal-results-info strong {
    color: #1a73e8;
    font-size: 18px;
}
.journal-results-container {
    display: grid;
    gap: 16px;
}
.journal-result-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #1a73e8;
    transition: all 0.3s;
}
.journal-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.journal-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.journal-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}
.journal-result-title a {
    color: #1a73e8;
    text-decoration: none;
}
.journal-result-title a:hover {
    text-decoration: underline;
}
.journal-result-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.journal-result-meta span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.journal-match-count {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}
.journal-result-snippet {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}
.journal-result-snippet mark {
    background: linear-gradient(180deg, transparent 60%, #fef08a 60%);
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
}
.journal-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.journal-pdf-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}
.journal-pdf-card:hover {
    border-color: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26,115,232,0.15);
}
.journal-pdf-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.journal-pdf-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.journal-pdf-info {
    font-size: 12px;
    color: #64748b;
}
.journal-loading {
    text-align: center;
    padding: 60px 20px;
}
.journal-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: journalSpin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes journalSpin {
    to { transform: rotate(360deg); }
}
.journal-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}
.journal-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.journal-btn-secondary {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.journal-btn-secondary:hover {
    background: #e2e8f0;
}
.journal-view-toggle {
    display: flex;
    gap: 8px;
}
.journal-view-btn {
    padding: 8px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.journal-view-btn.active {
    background: #1a73e8;
    color: white;
}
@media (max-width: 768px) {
    .journal-header-content {
        flex-direction: column;
        text-align: center;
    }
    .journal-search-box {
        flex-direction: column;
    }
    .journal-pdf-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
