/* =================================
   ARAKI LAB - COMMON STYLES
   Common styling components used across pages
   ================================= */

/* 主要內容 */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* 區塊樣式 */
.section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-text-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content-text-en {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
}

/* 新聞區塊 */
.news-section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.news-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding: 1.5rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-lighter);
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
}

.news-content-jp {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.news-content-en {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* 連結樣式 */
.link-accent {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-accent:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 連結區塊 */
.links-section {
    display: flex;
    gap: clamp(0.8rem, 2.5vw, 2rem);
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    padding: clamp(0.8rem, 2vw, 2.5rem);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    overflow: hidden;
}

.links-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.links-section a:hover {
    transform: translateY(-2px);
}

.links-section img {
    height: clamp(48px, 8vw, 80px);
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.for-members-link {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.for-members-link:hover {
    opacity: 1;
}

/* 頁腳 */
footer {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.8;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.footer-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.footer-links img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.footer-links a:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 400;
}

/* 進入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-links img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.5rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    .footer-links img {
        height: 30px;
    }
    
    .footer-content {
        gap: 1rem;
    }
}

/* 響應式連結區塊 */
@media (min-width: 1400px) {
    .links-section img {
        height: clamp(72px, 6vw, 88px);
    }
}

@media (max-width: 1200px) {
    .links-section {
        padding: clamp(1rem, 2vw, 2.5rem);
        gap: clamp(1rem, 2.5vw, 2rem);
    }
    
    .links-section img {
        height: clamp(60px, 7vw, 72px);
    }
}

@media (max-width: 1024px) {
    .links-section {
        padding: clamp(0.8rem, 1.8vw, 2rem);
        gap: clamp(0.8rem, 2vw, 1.5rem);
    }
    
    .links-section img {
        height: clamp(56px, 6.5vw, 68px);
    }
}

@media (max-width: 920px) {
    .links-section {
        padding: clamp(0.6rem, 1.5vw, 1.5rem);
        gap: clamp(0.6rem, 1.8vw, 1.2rem);
    }
    
    .links-section img {
        height: clamp(52px, 6vw, 64px);
    }
}

@media (max-width: 900px) {
    .links-section {
        padding: clamp(0.5rem, 1.2vw, 1.2rem);
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .links-section img {
        height: clamp(48px, 5.5vw, 60px);
    }
}

@media (max-width: 640px) {
    .links-section {
        padding: clamp(0.4rem, 1vw, 0.8rem);
        gap: clamp(0.4rem, 1.2vw, 0.8rem);
    }
    
    .links-section img {
        height: clamp(40px, 4.8vw, 52px);
    }
}

@media (max-width: 360px) {
    .links-section {
        padding: clamp(0.2rem, 0.8vw, 0.5rem);
        gap: clamp(0.2rem, 0.8vw, 0.4rem);
    }
    
    .links-section img {
        height: clamp(32px, 4vw, 40px);
    }
}

/* =================================
   MEMBERS PAGE STYLES
   ================================= */

.members-section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.members-table th,
.members-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.members-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.members-table td {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.members-table tbody tr:hover {
    background: var(--bg-lighter);
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

.member-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.member-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.table-note {
    background: var(--bg-lighter) !important;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    padding: 1.5rem !important;
}

.career-section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.career-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.career-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.career-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.career-list li:last-child {
    margin-bottom: 0;
}

/* Responsive tables */
@media (max-width: 768px) {
    .members-table th,
    .members-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-note {
        padding: 1rem !important;
        font-size: 0.8rem;
    }
}

/* =================================
   RESEARCH PAGE STYLES
   ================================= */

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.research-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.research-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-text-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.research-text-en {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
}

.research-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keyword {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-card {
        padding: 1.5rem;
    }
    
    .research-title {
        font-size: 1.3rem;
    }
}
