/* projects.css - Styles for 3D Projects Carousel */

/* Hide all sidebars and navigation */
.sidebar,
.sidebar__right,
.page__related,
.page__meta,
.page__share,
.page-author,
.toc,
.toc__menu,
#site-nav,
.author-profile,
.author__urls-wrapper,
.author__urls,
nav.greedy-nav,
.page__footer-follow,
aside {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force full width */
.page,
.page__content,
.page__inner-wrap,
#main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Carousel wrapper - clean design matching main site */
.carousel-wrapper {
    width: 100%;
    background: #ffffff;
    padding: 2rem 1rem;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.carousel-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.carousel-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 3D Carousel Structure */
.stage-container {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    perspective: 1800px;
}

.stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-wrapper {
    position: absolute;
    width: 280px;
    height: 380px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -190px;
}

/* Project Card Design */
.project-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #eaeaea;
}

.card-wrapper.center .project-card {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #0070f3;
}

/* Project Image */
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-wrapper.center .project-image img {
    transform: scale(1.05);
}

/* External Link Icon */
.external-link {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    display: none;
    border: 1px solid #ddd;
}

.card-wrapper.center .external-link {
    display: block;
}

.external-link:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.external-link svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #333;
}

/* Project Info */
.project-info {
    padding: 1.5rem;
    background: #f8f9fa;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-description {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Featured Badge */
.featured-badge {
    display: none;
    margin-top: auto;
}

.card-wrapper.center .featured-badge {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d2e3fc;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button:hover:not(:disabled) {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button svg {
    width: 28px;
    height: 28px;
    color: #333;
    display: block;
}

.nav-button.prev {
    left: 1.5rem;
}

.nav-button.next {
    right: 1.5rem;
}

/* Dot Navigation */
.dot-navigation {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.3);
}

.dot.active {
    width: 40px;
    height: 10px;
    border-radius: 5px;
    background: #0070f3;
}

.dot:disabled {
    cursor: not-allowed;
}

/* Controls */
.controls {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auto-rotate-button {
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.auto-rotate-button:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}

/* Project Counter */
.project-counter {
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding-bottom: 0.8rem;
}

.project-counter .current {
    font-weight: 700;
    color: #0070f3;
}

.project-counter .total {
    font-weight: 700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-header h1 {
        font-size: 2rem;
    }
    
    .stage-container {
        height: 400px;
    }
    
    .card-wrapper {
        width: 260px;
        height: 350px;
        margin-left: -130px;
        margin-top: -175px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-info {
        height: 190px;
        padding: 1.2rem;
    }
    
    .nav-button {
        padding: 0.6rem;
    }
    
    .nav-button svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-button.prev {
        left: 0.5rem;
    }
    
    .nav-button.next {
        right: 0.5rem;
    }
}