/* Physics Informed REPA Website Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Header Section with Gradient Background */
.header-wrapper {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 25%, #fbbf24 50%, #60a5fa 75%, #3b82f6 100%);
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.header-content {
    color: #333;
    z-index: 2;
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1e293b;
}

.header-content h1 span {
    font-size: 1.8rem;
    font-weight: 400;
    color: #34495e;
    display: block;
    margin-top: 0.5rem;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Icon Container */
.icon-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.icon-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.icon-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.icon-item div {
    font-size: 1rem;
    line-height: 1.5;
}

.icon-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #f59e0b;
    cursor: pointer;
    background-color: #fbbf24;
    color: #1f2937;
}

.button:hover {
    background-color: #f59e0b;
    border-color: #d97706;
    transform: translateY(-2px);
}

/* Disabled button styling */
.button:disabled,
.button.disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.button:disabled:hover,
.button.disabled:hover {
    transform: none;
    background-color: #666;
}

.button .icon {
    margin-right: 0.5rem;
}

/* Header Image */
.header-image {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.teaser-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Icon Row for Navigation */
.icon-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.icon-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-link:hover .icon-jump {
    color: #3a0fd1;
    transform: scale(1.1);
}

.icon-jump {
    font-size: 3rem;
    color: #4a14f1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.icon-link strong {
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Click hint */
.click-hint {
    text-align: center;
    margin: 2rem 0;
    font-size: 1rem;
    color: #666;
}

.click-hint img {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content h1 span {
        font-size: 1.4rem;
    }
    
    .icon-row {
        gap: 1.5rem;
    }
    
    .button-container {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 1rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content h1 span {
        font-size: 1.2rem;
    }
    
    .icon-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Article content styling */
d-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
}

.text {
    margin-bottom: 1.5rem;
    color: #333;
}

.text h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Byline styling - OBSOLETE: Replaced with compact authors-section */
/*
.byline {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.byline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.byline-column h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
*/

.author-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.affiliation-link {
    color: #34495e;
    text-decoration: none;
}

.affiliation-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.author-note {
    font-style: italic;
    color: #666;
}

/* Abstract section */
.abstract {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
}

/* Figure and image styling for proper sizing */
d-figure figure img,
figure img {
    max-width: 50%;
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

d-figure figure,
figure {
    margin: 2rem 0;
    text-align: center;
}

d-figure figcaption,
figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    text-align: left;
    max-width: 100%;
}
