/* Image Classification Project Page - Seattle University Styling */

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

/* Hero Section */
#hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #AA0000 0%, #660000 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(170, 0, 0, 0.3);
}

#hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: white;
    border-bottom: none;
    padding-left: 0;
}

#hero .subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 15px;
    padding-left: 0;
}

#hero .course-info {
    font-size: 0.95em;
    opacity: 0.85;
    margin-bottom: 5px;
    padding-left: 0;
}

#hero .author {
    font-size: 1.1em;
    font-weight: bold;
    padding-left: 0;
}

/* Summary Card */
.summary-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.summary-card p {
    padding-left: 0;
    font-size: 1.1em;
    line-height: 1.7;
}

.key-finding {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #AA0000;
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.key-finding h3 {
    color: #AA0000;
    margin-top: 0;
    padding-left: 0;
}

.key-finding p {
    margin-bottom: 0;
    padding-left: 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.metric-card {
    background: white;
    border: 2px solid #AA0000;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(170, 0, 0, 0.15);
}

.metric-value {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    color: #AA0000;
    margin-bottom: 8px;
}

.metric-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Challenge Section */
.challenge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.challenge-text h3 {
    color: #AA0000;
    padding-left: 0;
    margin-top: 0;
}

.challenge-text p {
    padding-left: 0;
    line-height: 1.7;
}

.class-distribution {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.class-distribution h4 {
    color: #AA0000;
    margin-top: 0;
    margin-bottom: 15px;
    padding-left: 0;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dist-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 10px;
}

.dist-label {
    font-weight: 600;
    font-size: 0.9em;
}

.dist-bar-container {
    background: #e0e0e0;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.dist-bar {
    background: linear-gradient(90deg, #AA0000, #cc3333);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dist-item.minority .dist-bar {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.dist-value {
    font-size: 0.85em;
    color: #666;
    text-align: right;
}

/* Methodology Section */
.methodology-content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
}

.methodology-content h3 {
    color: #AA0000;
    padding-left: 0;
    margin-top: 20px;
}

.methodology-content h3:first-child {
    margin-top: 0;
}

.methodology-content p {
    padding-left: 0;
}

.approaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.approach-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-3px);
}

.approach-card.winner {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
}

.approach-card.failed {
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.approach-number {
    width: 30px;
    height: 30px;
    background: #AA0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.approach-header h4 {
    flex: 1;
    margin: 0;
    padding-left: 0;
    font-size: 1em;
    color: #333;
}

.winner-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
}

.approach-card ul {
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.approach-card li {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #555;
}

.approach-result {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.approach-result.winner {
    background: #28a745;
    color: white;
}

.approach-result.failed {
    background: #dc3545;
    color: white;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-table th {
    background: #AA0000;
    color: white;
    padding: 15px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

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

.results-table tr:hover {
    background: #f9f9f9;
}

.winner-col {
    background: #e8f5e9 !important;
}

.results-table th.winner-col {
    background: #28a745 !important;
}

.critical-row {
    background: #fff8e1;
}

.failed-cell {
    color: #dc3545;
    font-weight: bold;
}

/* Visualizations */
.viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.viz-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
}

.viz-item.highlight {
    border: 2px solid #28a745;
}

.viz-item h3 {
    color: #AA0000;
    padding-left: 0;
    margin-top: 0;
    font-size: 1.1em;
}

.viz-container {
    text-align: center;
    margin: 15px 0;
}

.viz-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.viz-caption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    padding-left: 0;
    margin: 0;
}

.viz-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.viz-section h3 {
    color: #AA0000;
    padding-left: 0;
    margin-top: 0;
}

.viz-section p {
    padding-left: 0;
}

.external-test {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.test-result {
    text-align: center;
}

.test-image {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.test-caption {
    margin-top: 10px;
    font-size: 0.95em;
    padding-left: 0;
}

.test-note {
    font-style: italic;
    color: #555;
    text-align: center;
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.finding-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.finding-card.warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffdf5 0%, #fff8e1 100%);
}

.finding-card.danger {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
}

.finding-card.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
}

.finding-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.finding-card h3 {
    color: #AA0000;
    padding-left: 0;
    margin-top: 0;
    font-size: 1.1em;
}

.finding-card p {
    padding-left: 0;
    font-size: 0.95em;
    color: #555;
    margin: 0;
}

/* Recommendation Card */
.recommendation-card {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
}

.recommendation-card h3 {
    color: #28a745;
    padding-left: 0;
    margin-top: 0;
    font-size: 1.3em;
}

.recommendation-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.spec-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spec-value {
    font-weight: bold;
    color: #333;
}

.business-impact {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.business-impact h4 {
    color: #28a745;
    margin-top: 0;
    padding-left: 0;
}

.business-impact ul {
    padding-left: 25px;
    margin: 0;
}

.business-impact li {
    margin-bottom: 8px;
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, #AA0000 0%, #880000 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

/* Project Links */
.links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #AA0000;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.resource-link:hover {
    background: #880000;
    transform: translateY(-2px);
    color: white;
}

.link-icon {
    font-size: 1.3em;
}

/* Live Demo Section */
.demo-container {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.demo-intro {
    font-size: 1.15em;
    color: #333;
    margin-bottom: 25px;
    padding-left: 0;
}

.demo-frame-container {
    background: #0b0f19;
    border: 2px solid #AA0000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(170, 0, 0, 0.15);
}

#demo-iframe {
    width: 100%;
    height: 1200px;
    border: none;
}

.demo-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    font-style: italic;
    padding-left: 0;
}

.demo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #666;
}

.demo-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #AA0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.6em;
    }

    .challenge-content {
        grid-template-columns: 1fr;
    }

    .approaches-grid {
        grid-template-columns: 1fr;
    }

    .viz-grid {
        grid-template-columns: 1fr;
    }

    .findings-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-specs {
        grid-template-columns: 1fr;
    }

    .results-table th,
    .results-table td {
        padding: 8px 6px;
        font-size: 0.85em;
    }

    .dist-item {
        grid-template-columns: 70px 1fr 80px;
    }

    #demo-iframe {
        height: 1000px;
    }

    .demo-container {
        padding: 15px;
    }
}
