/* Gold Standards page specific styles */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(66, 153, 225, 0.1);
}

.nav-link:hover {
    background-color: rgba(66, 153, 225, 0.2);
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.github-link {
    background-color: #24292e;
    color: white !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.github-link:hover {
    background-color: #2b3137;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gold-standards-intro {
    text-align: center;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gold-standards-intro h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-standards-intro p {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
}

/* Frameworks Overview Styling */
.frameworks-overview {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: var(--paper-shadow);
    text-align: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.frameworks-overview h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.framework-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.framework-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.framework-section h4 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.framework-section h4 i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.framework-section > p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.framework-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.framework-type {
    padding: 1.25rem;
    border-radius: 8px;
    background-color: var(--background-color);
    border-left: 4px solid;
    height: fit-content;
}

.framework-type.framework-nas {
    border-color: var(--framework-nas-color);
}

.framework-type.framework-shpa {
    border-color: var(--framework-shpa-color);
}

.framework-type.framework-bcs {
    border-color: var(--framework-bcs-color);
}

.framework-type.framework-spatial {
    border-color: var(--framework-spatial-color);
}

.framework-type h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.framework-type.framework-nas h5 {
    color: var(--framework-nas-color);
}

.framework-type.framework-shpa h5 {
    color: var(--framework-shpa-color);
}

.framework-type.framework-bcs h5 {
    color: var(--framework-bcs-color);
}

.framework-type.framework-spatial h5 {
    color: var(--framework-spatial-color);
}

.framework-type p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Academic References Styling */
.academic-references {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--card-color);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--paper-shadow);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.academic-references h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.academic-references ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.academic-references li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.academic-references li:before {
    content: '\f02d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.academic-references a {
    color: var(--secondary-color);
    text-decoration: none;
    word-break: break-word;
}

.academic-references a:hover {
    text-decoration: underline;
}

.academic-references em {
    font-style: italic;
}

.gold-standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: fit-content;
}

.gold-standard-card {
    background-color: var(--card-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--paper-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    height: 30rem;
}

.gold-standard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-tag {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-tag.framework-nas {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--framework-nas-color);
}

.card-tag.framework-shpa {
    background-color: rgba(237, 100, 166, 0.1);
    color: var(--framework-shpa-color);
}

.card-tag.framework-bcs {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--framework-bcs-color);
}

.card-tag.framework-spatial {
    background-color: rgba(236, 201, 75, 0.1);
    color: var(--framework-spatial-color);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* Profile Viewer Styles */
.profile-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: none; /* Hidden by default */
    overflow-y: auto;
}

.profile-viewer.active {
    display: block;
}

.profile-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.profile-viewer-header h2 {
    color: white;
    margin: 0;
    font-size: 1.75rem;
}

.profile-viewer-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--background-color);
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
}

.profile-left-panel {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.profile-image-container {
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--paper-shadow);
    position: relative;
    height: 300px;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: rgba(66, 153, 225, 0.1);
}

.profile-image-placeholder i {
    font-size: 4rem;
    color: var(--border-color);
}

.case-summary-card,
.framework-analysis-card {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--paper-shadow);
}

.case-summary-card h3,
.framework-analysis-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.case-summary-card h3 i,
.framework-analysis-card h3 i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

/* Style for case tags in summary */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.case-tags .card-tag {
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.framework-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.framework-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.framework-name {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.framework-name .framework-value {
    font-weight: 700;
}

.framework-nas {
    color: var(--framework-nas-color);
}

.framework-shpa {
    color: var(--framework-shpa-color);
}

.framework-bcs {
    color: var(--framework-bcs-color);
}

.framework-spatial {
    color: var(--framework-spatial-color);
}

.framework-evidence {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.evidence-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.evidence-list {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.evidence-list li {
    margin-bottom: 0.25rem;
    color: var(--text-color);
    opacity: 0.85;
}

.profile-main-content {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.tab-btn:hover {
    background-color: rgba(66, 153, 225, 0.1);
    opacity: 0.9;
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: white;
    opacity: 1;
}

.tab-content {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--paper-shadow);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

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

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-item {
    margin-bottom: 1rem;
}

.content-item-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.content-item-value {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.reasoning-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.reasoning-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.reasoning-list {
    padding-left: 1.5rem;
    margin: 0;
}

.reasoning-list li {
    margin-bottom: 0.5rem;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.placeholder-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Footer Github Link */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    margin-bottom: 0;
}

.footer-github-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    background-color: #24292e;
    color: white !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-github-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.footer-github-link:hover {
    background-color: #2b3137;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .profile-viewer-content {
        flex-direction: column;
    }
    
    .profile-left-panel {
        flex: 0 0 auto;
        width: 100%;
        position: static;
    }
    
    .case-summary-card, 
    .framework-analysis-card {
        margin-bottom: 1.5rem;
    }

    /* Improve framework overview on tablets */
    .framework-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .frameworks-overview {
        padding: 1.5rem;
    }
    
    .framework-types {
        grid-template-columns: 1fr;
    }
    
    .framework-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    /* Adjust gold standard cards for better fit */
    .gold-standards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .gold-standard-card {
        height: 420px;
    }

    .card-image {
        height: 180px;
    }

    /* Adjust header for smaller screens */
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1.2rem;
    }
    
    /* Reduce intro text size */
    .gold-standards-intro h2 {
        font-size: 1.75rem;
    }
    
    .gold-standards-intro p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .gold-standards-grid {
        padding: 1rem;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tabs {
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .profile-viewer-header {
        padding: 1rem;
    }
    
    .profile-viewer-header h2 {
        font-size: 1.25rem;
    }
    
    .profile-viewer-content {
        padding: 1rem;
    }
    
    .frameworks-overview,
    .academic-references {
        padding: 1rem;
        margin-top: 2rem;
    }

    .framework-section h4 {
        font-size: 1.1rem;
    }

    .framework-type h5 {
        font-size: 1rem;
    }

    /* Improve header layout */
    header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding: 1rem 0.75rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-link, .github-link {
        width: 100%;
        justify-content: center;
    }

    /* Adjust card heights */
    .gold-standard-card {
        height: 400px;
    }

    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }
}

/* Add small mobile device optimizations */
@media (max-width: 576px) {
    .gold-standards-grid {
        grid-template-columns: 1fr;
        max-width: 85%;
    }
    
    /* Footer mobile responsiveness */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-github-link {
        width: 100%;
        justify-content: center;
    }

    .gold-standard-card {
        height: auto;
        min-height: 380px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .framework-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .framework-type {
        padding: 1rem;
    }

    .framework-type p {
        font-size: 0.85rem;
    }

    .academic-references li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    /* Simplify the header further */
    .logo {
        font-size: 0.95rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    /* Make profile viewer more compact */
    .profile-image-container {
        height: 200px;
    }

    .case-summary-card,
    .framework-analysis-card {
        padding: 1rem;
    }

    .case-summary-card h3,
    .framework-analysis-card h3 {
        font-size: 1.1rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    /* Make tab content more readable */
    .content-item-label {
        font-size: 0.9rem;
    }

    .content-item-value {
        font-size: 0.85rem;
    }
}

/* Fix nav links on very small screens */
@media (max-width: 400px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .nav-link {
        justify-content: center;
    }

    .theme-toggle {
        margin-top: 0.5rem;
        justify-content: center;
    }
} 