/**
 * Demo-specific styles for Infinite Scroll Carousel
 * 
 * These styles are for demonstration purposes only.
 * The component itself only requires grab-n-drag-infinite-carousel.css
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    overflow-y: scroll;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.demo-section {
    margin-bottom: 60px;
}

.demo-section h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.demo-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

/* Example 1: Simple Text Items */
#carousel1 .infinite-scroll-item {
    padding: 15px 30px;
    margin-right: 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Example 2: Image Gallery */
.image-item {
    width: 300px;
    height: 200px;
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(.9);
    transition: transform 0.3s;
}

.image-item:hover {
    transform: scale(1);
}

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

/* Example 3: Numbered Boxes */
.box {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #ff6b6b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Example 4: Icon Cards */
.card {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-right: 25px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 12px;
    color: white;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
    transition: transform 0.2s;
    margin-top: 10px;
}

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

.card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Example 4: Skills List with Icons */
.skills-list {
    padding: 20px 0;
    background: #000;
}

.icon-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#carousel4a .icon-item,
#carousel4b .icon-item {
    padding: 12px 20px;
    margin-right: 15px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 25px;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

#carousel4a .icon-item i,
#carousel4b .icon-item i {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: #666;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Code Dropdown Styles */
.code-dropdown {
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.code-toggle {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(to right, #14b8a6, transparent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.code-content {
    display: none;
    background: white;
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.code-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.code-tab:hover {
    background: #e9ecef;
    color: #333;
}

.code-tab.active {
    color: #14b8a6;
    border-bottom-color: #14b8a6;
    background: white;
}

.code-block {
    display: none;
    padding: 20px;
    overflow-x: auto;
}

.code-block.active {
    display: block;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.code-block code {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .demo-container {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .demo-section h2 {
        font-size: 1.2rem;
    }
    .demo-section h4 {
        font-size: .8rem;
    }

    #carousel1 .infinite-scroll-item {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .card {
        min-width: 100px;
        padding: 15px;
    }

    .card .icon {
        font-size: 2rem;
    }

    .box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .tech-item {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    #carousel4a .icon-item,
    #carousel4b .icon-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    #carousel4a .icon-item i,
    #carousel4b .icon-item i {
        font-size: 1rem;
    }

    .image-item {
        width: 250px;
        height: 160px;
        margin-right: 15px;
    }

    .code-block {
        padding: 15px;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .code-tab {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

