/* 디자인 갤러리 전용 스타일 */
/* Hero 배경 오버라이드 - 표준 hero 구조 사용 */
.hero-design-gallery {
    background: linear-gradient(135deg, #000000 0%, #2C2C2C 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-design-gallery .hero-title {
    color: white;
}

.hero-design-gallery .hero-subtitle {
    color: white;
    opacity: 0.95;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.design-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.design-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.design-preview {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.design-content {
    padding: 2rem;
}

.design-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.design-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.design-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.design-tag {
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* 비대칭 그리드 예시 */
.asymmetrical-demo {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 2rem;
    background: #f9f9f9;
}

.asymmetrical-demo .box1 {
    grid-column: 2 / 7;
    background: #000000;
    padding: 2rem;
    color: white;
    border-radius: 8px;
}

.asymmetrical-demo .box1 h4,
.asymmetrical-demo .box1 p {
    color: white;
}

.asymmetrical-demo .box2 {
    grid-column: 7 / 12;
    background: #2C2C2C;
    padding: 2rem;
    color: white;
    border-radius: 8px;
    margin-top: -2rem;
}

.asymmetrical-demo .box2 p {
    color: white;
}

/* 분할 화면 예시 */
.split-screen-demo {
    display: flex;
    height: 250px;
}

.split-left {
    flex: 1;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.split-left h4,
.split-left p {
    color: white;
}

.split-right {
    flex: 1;
    background: linear-gradient(135deg, #000000 0%, #2C2C2C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

.split-right h4,
.split-right p {
    color: white;
}

/* 브루탈리즘 예시 */
.brutalism-demo {
    background: #FFD93D;
    padding: 2rem;
    font-family: 'Space Mono', monospace;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brutalism-btn {
    background: white;
    color: black;
    padding: 1rem 2rem;
    border: 3px solid black;
    box-shadow: 6px 6px 0px black;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
}

.brutalism-btn:hover {
    box-shadow: 8px 8px 0px black;
    transform: translate(-2px, -2px);
}

/* 글래스모피즘 예시 */
.glassmorphism-demo {
    background: linear-gradient(135deg, #000000 0%, #2C2C2C 100%);
    padding: 2rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card h4,
.glass-card p {
    color: white;
}

/* 3D 예시 */
.three-d-demo {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.cube-3d {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(50px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(50px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(50px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* 키네틱 타이포그래피 예시 */
.kinetic-demo {
    background: #000;
    padding: 2rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-text {
    font-size: 3rem;
    font-weight: bold;
    color: #1E90FF;
}

.wave-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 미니멀 예시 */
.minimal-demo {
    background: white;
    padding: 3rem;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #eee;
}

.minimal-demo h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.minimal-demo p {
    color: #666;
    line-height: 1.8;
}

/* F-패턴 예시 */
.f-pattern-demo {
    background: white;
    padding: 2rem;
    height: 250px;
    display: grid;
    grid-template-areas:
        "header header header"
        "sidebar content content"
        "sidebar bottom bottom";
    gap: 1rem;
}

.f-header {
    grid-area: header;
    background: #000000;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.f-sidebar {
    grid-area: sidebar;
    background: #2C2C2C;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.f-content {
    grid-area: content;
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    color: #000000;
}

.f-bottom {
    grid-area: bottom;
    background: #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    color: #000000;
}

/* ============================================ */
/*          TAILWIND CSS SECTION STYLES        */
/* ============================================ */

/* Tailwind Introduction Section */
.tailwind-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    margin-bottom: 0;
}

.tailwind-intro h2 {
    color: white;
}

.tailwind-intro p {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================ */
/*     WEB TECHNOLOGIES LIBRARY SECTION        */
/* ============================================ */

/* Main Section */
.web-tech-library {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.web-tech-library .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.web-tech-library .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.web-tech-library .section-header p {
    font-size: 1.25rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Theme Cards Grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Theme Card Base */
.theme-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.theme-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Theme-specific gradients */
.cinematic-theme {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.immersive-theme {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.playful-theme {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.premium-theme {
    background: linear-gradient(135deg, #000000 0%, #4b5563 100%);
}

/* Theme Detail Sections */
.theme-detail {
    background: white;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: none; /* Hidden by default */
}

.theme-detail h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

.theme-detail p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Real-world Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.example-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.example-card:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.example-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.example-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.example-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.example-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Industry Recommendations */
.industries-list {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.industries-list h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #92400e;
}

.industries-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.industries-list li {
    font-size: 0.875rem;
    color: #78350f;
    padding-left: 1.5rem;
    position: relative;
}

.industries-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* CTA Button in detail sections */
.theme-detail .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.theme-detail .btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Tailwind Benefits Grid */
.tailwind-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-card h3 {
    color: #2C2C2C;
}

.benefit-card p {
    color: #666666;
}

/* Tailwind Badge (for filter button) */
.filter-btn[data-filter="tailwind"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    border-color: #667eea;
}

.filter-btn[data-filter="tailwind"]:hover,
.filter-btn[data-filter="tailwind"].active {
    background: linear-gradient(135deg, #5568d3, #6b3fa0);
    transform: scale(1.05);
}

/* Tailwind Pattern Badge */
.difficulty-badge[style*="667eea"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

/* Toggle Version Button (for future enhancement) */
.toggle-version-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
}

.toggle-version-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.toggle-version-btn:active {
    transform: translateY(0);
}

/* Tailwind Intro CTA Button */
.tailwind-intro .btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

.tailwind-intro .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for Tailwind Section */
@media (max-width: 768px) {
    .tailwind-intro {
        padding: 3rem 1.5rem;
    }

    .tailwind-intro h2 {
        font-size: 2rem;
    }

    .tailwind-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-design-gallery .hero-title {
        font-size: 2rem;
    }

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

    .split-screen-demo {
        flex-direction: column;
    }

    .asymmetrical-demo .box1,
    .asymmetrical-demo .box2 {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    /* Web Technologies Library - Mobile */
    .web-tech-library {
        padding: 3rem 1.5rem;
    }

    .web-tech-library .section-header h2 {
        font-size: 1.75rem;
    }

    .web-tech-library .section-header p {
        font-size: 1rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .theme-card {
        padding: 2rem 1.5rem;
    }

    .theme-card h3 {
        font-size: 1.5rem;
    }

    .theme-detail {
        padding: 2rem 1.5rem;
    }

    .theme-detail h4 {
        font-size: 1.25rem;
    }

    .theme-detail p {
        font-size: 1rem;
    }

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

    .industries-list ul {
        grid-template-columns: 1fr;
    }
}
