/* Works Page Specific Styles */

/* Navbar Customization for Works Page */
.navbar,
.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}

.navbar .logo,
.navbar .logo-text,
.navbar .nav-link,
.navbar .menu-toggle-btn {
    color: var(--color-black);
}

.navbar .nav-link:hover,
.navbar .menu-toggle-btn:hover {
    color: var(--color-primary);
}

.navbar .nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* Page Header */
.page-header {
    padding: 180px 0 60px;
    background-color: var(--color-white);
    text-align: left;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 2rem;
}

.page-breadcrumb {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-family: var(--font-korean);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
}

.breadcrumb-item:hover,
.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: -0.9rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Works Sections */
.works-section {
    padding: 80px 0;
    background-color: var(--color-white);
    color: var(--color-black);
    border-bottom: 1px solid var(--color-neutral-medium);
}

.works-section:nth-child(even) {
    background-color: var(--color-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 1rem;
}

.section-title {
    font-family: var(--font-korean);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-black);
    transition: transform 0.3s ease;
}

.toggle-btn.collapsed {
    transform: rotate(180deg);
}

.section-description {
    font-family: var(--font-korean);
    font-size: var(--font-main-desc);
    line-height: 1.6;
    margin-bottom: 4rem;
    color: var(--color-text-primary);
}

/* IMC Circles Diagram */
.imc-circles-wrapper {
    position: relative;
    padding: 6rem 0 8rem;
    text-align: center;
    overflow: visible;
    background-color: #fff;
}

.imc-circles {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1063px;
    height: 290px;
    margin: 0 auto;
}

.circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    font-family: var(--font-korean);
}

/* Left 1 - Brand Marketing */
.circle.left-1 {
    width: 271px;
    height: 280px;
    background: linear-gradient(to right, #f7c09d 0%, #f6c29b 30%, #f89854 80%, #f57618 100%);
    left: 0;
    font-size: 32px;
    z-index: 4;
    border-radius: 0 140px 140px 0;
}

/* Left 2 - Creative (text on right) */
.circle.left-2 {
    width: 271px;
    height: 280px;
	background: linear-gradient(to right, #ffffff 20%, #ffe9d8 30%, #ffceab 60%, #f57618 100%);
    left: 100px;
    z-index: 3;
    font-size: 20px;
    font-weight: 500;
    justify-content: flex-end;
    padding-right: 20px;
    border-radius: 0 140px 140px 0;
}

/* Left 3 - Gradient only */
.circle.left-3 {
    width: 271px;
    height: 280px;
    background: linear-gradient(135deg, rgba(253, 229, 208, 0.6) 0%, rgba(254, 246, 240, 0.4) 100%);
    left: 170px;
    z-index: 2;
    border-radius: 0 140px 140px 0;
}

/* Center - IMC Marketing */
.circle.center {
    width: 280px;
    height: 280px;
    background: #f94b4b;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(249, 75, 75, 0.2);
}

/* Right 3 - Gradient only */
.circle.right-3 {
    width: 271px;
    height: 280px;
    background: linear-gradient(135deg, rgba(253, 229, 208, 0.6) 0%, rgba(254, 246, 240, 0.4) 100%);
    right: 170px;
    z-index: 2;
    border-radius: 140px 0 0 140px;
}

/* Right 2 - Data (text on left) */
.circle.right-2 {
    width: 271px;
    height: 280px;
	background: linear-gradient(to right, #f5b84c 0%, #ffd787 30%, #fdedce 60%, #fdefd8 100%);
    right: 100px;
    z-index: 3;
    font-size: 20px;
    font-weight: 500;
    justify-content: flex-start;
    padding-left: 30px;
    border-radius: 140px 0 0 140px;
}

/* Right 1 - Performance Marketing */
.circle.right-1 {
    width: 271px;
    height: 280px;
    background: linear-gradient(to right, #f5b84c 0%, #f8c86a 30%, #fad998 60%, #f9daa7 100%);
    right: 0;
    font-size: 32px;
    z-index: 4;
    border-radius: 140px 0 0 140px;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-list {
    text-align: left;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding-left: 1rem;
}

.step-list li {
    margin-bottom: 0.3rem;
    list-style-type: disc;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-neutral-gray);
    padding-top: 100px;
}

/* Process Cards */
.process-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--color-neutral-medium);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.card-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.card-sublist {
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.card-sublist li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* Performance Details */
.performance-details {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    background-color: var(--color-white);
}

.detail-item {
    background: #fff;
    padding: 2.5rem;
    
    border:1px solid var(--color-nomal_gray);
    
    position: relative;
}

/* 마지막 아이템(바이럴 광고)은 전체 너비 */
.detail-item:last-child {
    grid-column: 1 / -1;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    padding-right: 0;
}

.detail-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-black);
    line-height: 1.3;
    flex: 1;
    padding-right: 1rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: #f94b4b;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-family: var(--font-korean);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-tags span {
    background: #f5f5f5;
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .imc-circles {
        transform: scale(0.75);
    }

    .step-arrow {
        display: none;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .imc-circles {
        transform: scale(0.55);
        height: 200px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .performance-details {
        grid-template-columns: 1fr;
    }
    
    .detail-item:last-child {
        grid-column: 1;
    }
}

@media (max-width: 390px) {
    .imc-circles {
        transform: scale(0.4);
        height: 150px;
    }
}

/* Mobile/Tablet Menu Override */
@media (max-width: 1024px) {
    .nav-menu {
        background-color: var(--color-white) !important;
    }

    .nav-menu .nav-link {
        color: var(--color-black) !important;
    }

    .nav-menu .nav-link:hover {
        color: var(--color-primary) !important;
    }
}