/**
 * Content Features Styles
 * Homepage spotlights, sponsored collections, PDF viewer, infographic gallery
 */

/* ============================================
   Homepage Spotlight
   ============================================ */

.ac-homepage-spotlight {
    padding: 40px 0;
}

.ac-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ac-spotlight-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-left: 4px solid #1B787C;
}

.ac-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(27, 120, 124, 0.15);
}

.ac-spotlight-tagline {
    display: inline-block;
    background: linear-gradient(120deg, #1B787C 0%, #60BBA4 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ac-spotlight-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 12px;
    margin-left: 8px;
}

.ac-spotlight-type.ac-type-abstract {
    background: #E8F5F5;
    color: #1B787C;
}

.ac-spotlight-type.ac-type-medical_poster {
    background: #FFF3E6;
    color: #D97706;
}

.ac-spotlight-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.ac-spotlight-title a {
    color: inherit;
    text-decoration: none;
}

.ac-spotlight-title a:hover {
    color: #1B787C;
}

.ac-spotlight-therapeutic {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.ac-spotlight-company {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.ac-spotlight-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1B787C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ac-spotlight-link:hover {
    color: #60BBA4;
}

/* ============================================
   Sponsored Collection
   ============================================ */

.ac-sponsored-collection {
    margin: 40px 0;
}

.ac-collection-header {
    background: linear-gradient(135deg, #1B787C 0%, #60BBA4 100%);
    color: #ffffff;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ac-collection-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 120, 124, 0.85);
    border-radius: 16px;
}

.ac-collection-header > * {
    position: relative;
    z-index: 1;
}

.ac-sponsor-logo {
    max-width: 180px;
    max-height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.ac-collection-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.ac-collection-description {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 16px auto;
}

.ac-sponsor-attribution {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.ac-collection-grid {
    display: grid;
    gap: 20px;
}

.ac-sponsored-collection[data-columns="2"] .ac-collection-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ac-sponsored-collection[data-columns="3"] .ac-collection-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ac-sponsored-collection[data-columns="4"] .ac-collection-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .ac-sponsored-collection[data-columns="2"] .ac-collection-grid,
    .ac-sponsored-collection[data-columns="3"] .ac-collection-grid,
    .ac-sponsored-collection[data-columns="4"] .ac-collection-grid {
        grid-template-columns: 1fr;
    }
}

.ac-collection-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-collection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 120, 124, 0.12);
}

.ac-item-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    background: #E8F5F5;
    color: #1B787C;
    margin-bottom: 10px;
}

.ac-collection-item h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.ac-collection-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.ac-collection-item h3 a:hover {
    color: #1B787C;
}

.ac-therapeutic {
    font-size: 12px;
    color: #666;
}

/* ============================================
   PDF Viewer
   ============================================ */

.ac-pdf-viewer {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ac-pdf-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.ac-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    flex-wrap: wrap;
}

.ac-pdf-toolbar button {
    background: linear-gradient(120deg, #1B787C 0%, #60BBA4 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-pdf-toolbar button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ac-pdf-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ac-pdf-page-info {
    font-size: 14px;
    color: #666;
}

.ac-pdf-download {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #1B787C;
    text-decoration: none;
}

.ac-pdf-download:hover {
    color: #60BBA4;
}

.ac-pdf-canvas {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Infographic Gallery
   ============================================ */

.ac-infographic-gallery {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.ac-infographic-gallery[data-columns="1"] {
    grid-template-columns: 1fr;
}

.ac-infographic-gallery[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ac-infographic-gallery[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .ac-infographic-gallery[data-columns="2"],
    .ac-infographic-gallery[data-columns="3"] {
        grid-template-columns: 1fr;
    }
}

.ac-infographic-item {
    margin: 0;
}

.ac-infographic-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ac-infographic-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ac-infographic-item img {
    width: 100%;
    height: auto;
    display: block;
}

.ac-infographic-item figcaption {
    padding: 12px 16px;
    background: #f8f8f8;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* ============================================
   Featured Content Grid
   ============================================ */

.ac-featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.ac-featured-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.ac-featured-item h4 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
}

.ac-featured-item h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.ac-featured-item h4 a:hover {
    color: #1B787C;
}

/* ============================================
   Utility Classes
   ============================================ */

.ac-no-spotlights,
.ac-no-content,
.ac-error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.ac-error {
    color: #c62828;
}
