/**
 * DownAcademia - Paper Details Page Styles
 */

/* Breadcrumb */
.breadcrumb-nav {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #764ba2;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Paper Hero Section */
.paper-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.paper-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.paper-hero .container {
    position: relative;
    z-index: 1;
}

/* Hero Download Card */
.hero-download-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-download-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-download-header h3 {
    color: white;
    margin: 0;
}

.hero-download-body {
    padding: 1.5rem;
}

.format-selection-inline {
    color: white;
}

.format-label-inline {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.format-selection-inline .format-option {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.format-selection-inline .format-option:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.format-selection-inline .format-option.selected {
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.format-selection-inline .format-option-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.format-selection-inline .format-option-icon.pdf {
    background: rgba(220, 38, 38, 0.2);
    color: #ffcdd2;
}

.format-selection-inline .format-option-icon.docx {
    background: rgba(37, 99, 235, 0.2);
    color: #bbdefb;
}

.format-selection-inline .format-option-label {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.format-selection-inline .format-option-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.format-selection-inline .format-option {
    width: 100%;
    min-width: auto;
}

.info-box-hero {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

.info-box-item-hero {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-box-item-hero:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box-item-hero i {
    font-size: 1rem;
}

/* Paper Cover */
.paper-cover-wrapper {
    position: relative;
}

.paper-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.paper-cover:hover {
    transform: translateY(-5px);
}

.paper-cover-image {
    width: 100%;
    height: auto;
    display: block;
    background: #f8f9fa;
}

.paper-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paper-cover:hover .paper-cover-overlay {
    opacity: 1;
}

/* Paper Header Content */
.paper-header-content {
    padding-left: 1rem;
}

.paper-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: white;
}

.paper-author-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info i {
    font-size: 2rem;
    opacity: 0.9;
}

.author-info strong {
    color: white;
    font-size: 1.1rem;
}

.author-info small {
    color: rgba(255, 255, 255, 0.8);
}

.paper-year {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.paper-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 90px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-badge i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paper-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Content Section */
.paper-content-section {
    background: #f8f9fa;
    min-height: 60vh;
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.card-body-custom {
    padding: 1.5rem;
}

.abstract-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
    margin: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.sidebar-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    border-bottom: none;
}

.sidebar-card-header h3 {
    color: white;
    margin: 0;
}

.sidebar-card-body {
    padding: 1.5rem;
}

/* Format Selection */
.format-label {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.format-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.format-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.format-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.format-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.75rem;
}

.format-option-icon.pdf {
    background: #fef2f2;
    color: #dc2626;
}

.format-option-icon.docx {
    background: #eff6ff;
    color: #2563eb;
}

.format-option-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.format-option-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.info-box-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.info-box-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.info-box-item i {
    font-size: 1.1rem;
}

.info-box-item span {
    color: #495057;
}

/* Quick Info */
.quick-info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem 0;
}

.quick-info-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.quick-info-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.quick-info-item strong {
    display: block;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .paper-header-content {
        padding-left: 0;
        margin-top: 0;
    }
    
    .paper-title {
        font-size: 1.75rem;
    }
    
    .hero-download-card {
        margin-top: 2rem;
    }
    
    .format-selection-inline .format-option {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .format-selection-inline .format-option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .paper-hero {
        padding: 2rem 0;
    }
    
    .paper-title {
        font-size: 1.5rem;
    }
    
    .hero-download-body .row {
        flex-direction: column;
    }
    
    .format-selection-inline {
        margin-bottom: 1rem;
    }
    
    
    .paper-stats {
        gap: 0.75rem;
    }
    
    .stat-badge {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }
    
    .paper-actions {
        flex-direction: column;
    }
    
    .paper-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .paper-title {
        font-size: 1.25rem;
    }
    
    .stat-badge {
        flex: 1;
        min-width: auto;
    }
    
    .paper-author-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

