/* ========================================
   DISCOVERIES.CSS
   Styles for CV discoveries component
======================================== */

/* ----------------------------------------
   DISCOVERIES SECTION
---------------------------------------- */
.discoveries-list {
    margin-top: 0;
}

.discovery-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.discovery-details h5 {
    color: #4a2c17;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.discovery-description {
    color: #5d3e2a;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
}

.discovery-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discovery-links a {
    color: #8B4513;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #8B4513;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    width: fit-content;
}

.discovery-links a:hover {
    color: #A0522D;
    border-bottom-color: #A0522D;
    text-decoration: underline;
}

/* ----------------------------------------
   YEAR GROUPS FOR DISCOVERIES
---------------------------------------- */
.year-group {
    margin-bottom: 40px;
}

.year-group:last-child {
    margin-bottom: 0;
}

.year-title {
    color: #4a2c17;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 3px solid #8B4513;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1));
    border-radius: 8px 8px 0 0;
}

/* ----------------------------------------
   SHOW MORE FUNCTIONALITY
---------------------------------------- */
.year-hidden {
    display: none;
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 69, 19, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.show-more-btn {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    min-width: 180px;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.show-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.show-more-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.discoveries-counter {
    color: #5d3e2a;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
}

.discoveries-counter span {
    font-weight: 600;
    color: #8B4513;
}

/* ----------------------------------------
   RESPONSIVE DESIGN FOR DISCOVERIES
---------------------------------------- */

/* Tablets and medium screens */
@media (max-width: 1024px) {
    .discovery-item {
        padding: 18px;
        gap: 18px;
    }
    
    .year-title {
        font-size: 1.3rem;
        padding: 8px 0;
    }
}

/* Small tablets */
@media (max-width: 768px) {
    .discovery-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 16px;
    }
    
    .discovery-details h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .discovery-description {
        font-size: 0.85rem;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .discovery-links {
        gap: 6px;
    }
    
    .discovery-links a {
        font-size: 0.85rem;
    }
    
    .year-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
        padding: 8px 12px;
    }
    
    .year-group {
        margin-bottom: 30px;
    }
    
    .show-more-container {
        gap: 8px;
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .show-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .discoveries-counter {
        font-size: 0.8rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .discovery-item {
        padding: 14px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .discovery-details h5 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .discovery-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .discovery-links a {
        font-size: 0.8rem;
        word-break: break-word;
    }
    
    .year-title {
        font-size: 1.1rem;
        padding: 6px 10px;
        margin-bottom: 14px;
    }
    
    .year-group {
        margin-bottom: 25px;
    }
    
    .show-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 140px;
    }
    
    .discoveries-counter {
        font-size: 0.75rem;
    }
}