/* RHM Dataset Project Styles */

.project-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

.project-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    margin-bottom: 0;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.project-hero * {
    position: relative;
    z-index: 2;
}

.project-hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-hero p {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 2rem auto 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-dataset-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-dataset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-dataset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.hero-dataset-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* Hero navigation buttons styling - all dark like GitHub */
.hero-rgb-btn,
.hero-skeleton-btn,
.hero-github-btn {
    background: #24292e;
    border: 2px solid #24292e;
}

.hero-rgb-btn:hover,
.hero-skeleton-btn:hover,
.hero-github-btn:hover {
    background: transparent;
    color: #24292e;
    border-color: #24292e;
}

.dataset-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.camera-views {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.camera-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.camera-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.camera-card h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.activity-item {
    background: var(--section-bg);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: var(--card-hover-bg);
}

.activity-name {
    font-weight: 500;
    color: var(--text-color);
}

.activity-count {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dataset-splits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.split-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.split-card.train {
    border-top: 4px solid #28a745;
}

.split-card.validation {
    border-top: 4px solid #ffc107;
}

.split-card.test {
    border-top: 4px solid #dc3545;
}

.split-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.split-card.train .split-percentage {
    color: #28a745;
}

.split-card.validation .split-percentage {
    color: #ffc107;
}

.split-card.test .split-percentage {
    color: #dc3545;
}

.dataset-preview {
    text-align: center;
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px dashed var(--border-color);
}

.paper-item {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.paper-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.paper-title:hover {
    color: var(--secondary-color);
    text-decoration: underline !important;
}

.paper-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.application-card {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.application-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.application-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.application-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* RGB Dataset button - dark blue styling */
.btn-rgb-dataset {
    background-color: #1e3a8a;
    color: white;
    border: 2px solid #1e3a8a;
}

.btn-rgb-dataset:hover {
    background-color: transparent;
    color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero {
        padding: 3rem 1rem;
        margin: -1.5rem -1rem 1.5rem -1rem;
    }
    
    .project-hero h1 {
        font-size: 2.2rem;
    }
    
    .project-hero p {
        font-size: 1.1rem;
    }
    
    .dataset-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .camera-views {
        grid-template-columns: 1fr;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .dataset-splits {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .application-card {
        padding: 0.8rem;
    }
    
    .application-card h4 {
        font-size: 0.9rem;
    }
    
    .application-card p {
        font-size: 0.8rem;
    }
    
    .hero-dataset-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-dataset-btn {
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Technical Specifications responsive */
    .tech-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    
    .tech-spec-card {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .project-hero h1 {
        font-size: 1.8rem;
    }
    
    .project-hero p {
        font-size: 1rem;
    }
    
    .dataset-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .camera-card, .paper-item {
        padding: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .application-card {
        padding: 0.6rem;
    }
    
    .application-card h4 {
        font-size: 0.85rem;
    }
    
    .application-card p {
        font-size: 0.75rem;
    }
    
    .application-card i {
        font-size: 1.2rem;
    }
}

/* Dataset Video Showcase Styles */
.dataset-showcase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h3 {
    margin: 0 0 1rem 0;
    color: white;
    font-size: 1.5rem;
}

.showcase-info {
    text-align: center;
    margin: 0;
}

.showcase-info p {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Video Matrix Layout */
.video-matrix {
    display: grid;
    grid-template-columns: 100px repeat(14, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    overflow-x: auto;
    min-width: 1200px;
}

.matrix-row {
    display: contents;
}

.view-label {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    height: 80px;
    writing-mode: horizontal-tb;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-matrix video {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-matrix video:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

/* Responsive design for video matrix */
@media (max-width: 1400px) {
    .dataset-showcase {
        overflow-x: auto;
        padding: 1rem;
    }
    
    .video-matrix {
        min-width: 1000px;
    }
    
    .view-label {
        font-size: 0.8rem;
        height: 70px;
    }
    
    .video-matrix video {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .dataset-showcase {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .video-matrix {
        min-width: 900px;
        gap: 2px;
        grid-template-columns: 80px repeat(14, 1fr);
    }
    
    .view-label {
        font-size: 0.7rem;
        height: 60px;
    }
    
    .video-matrix video {
        height: 60px;
    }
    
    .showcase-header h3 {
        font-size: 1.2rem;
    }
    
    .showcase-info p {
        font-size: 1rem;
    }
    
    /* GitHub repos grid responsive behavior */
    .github-repos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .repo-card {
        height: 190px;
        padding: 1rem;
    }
    
    .repo-title {
        font-size: 0.9rem;
    }
    
    .repo-description {
        font-size: 0.8rem;
    }
    
    .repo-card .btn-secondary {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* GitHub Repository Cards Styling */
.github-repos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.repo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 220px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.repo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.repo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.repo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.repo-content {
    flex: 1;
    margin-bottom: 1rem;
}

.repo-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-footer {
    margin-top: auto;
}

.repo-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    padding: 0.6rem 1rem;
}

.repo-card .btn-secondary i {
    font-size: 0.9rem;
}

/* Extra small screens - mobile phones */
@media (max-width: 480px) {
    .github-repos-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .repo-card {
        height: 170px;
        padding: 0.8rem;
    }
    
    .repo-header {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .repo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .repo-title {
        font-size: 0.85rem;
    }
    
    .repo-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .repo-card .btn-secondary {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    /* Technical Specifications mobile */
    .tech-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .tech-spec-card {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
}
