/* Custom CSS to supplement Bootstrap */

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top Banner */
.top-banner {
    background-color: #1a1a2e;
    font-size: 0.85rem;
}

.banner-link {
    color: #ea4c89;
    text-decoration: none;
    font-weight: 500;
}

.banner-link:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar-brand {
    color: #ea4c89 !important;
    font-size: 1.5rem;
}

.btn-primary {
    background-color: #ea4c89;
    border-color: #ea4c89;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #d63384;
    border-color: #d63384;
}

.text-primary {
    color: #ea4c89 !important;
}

.search-icon-btn {
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-icon-btn:hover {
    background-color: #f8f9fa;
}

/* Hamburger Menu */
.hamburger-menu {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 18px;
    color: #333;
}

.hamburger-menu:hover {
    background-color: #f8f9fa;
}

/* Side Menu Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Menu - 오른쪽으로 변경 */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: white;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.user-info .user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #e9ecef;
}

.side-menu-content {
    padding: 0;
}

.menu-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.menu-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding: 0 20px;
    font-size: 14px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

/* 마우스 호버 시 강조 효과 */
.category-item:hover {
    background-color: #ea4c89;
    color: white;
}

.category-item:hover i:first-child {
    color: white;
}

.category-item:hover .arrow {
    color: white;
}

/* 기본 featured 스타일 제거하고 호버 효과로만 사용 */
.category-item.featured {
    background-color: transparent;
    color: inherit;
}

.category-item.featured:hover {
    background-color: #ea4c89;
    color: white;
}

.category-item i:first-child {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: #666;
    transition: color 0.2s;
}

.category-item span {
    flex: 1;
    font-size: 14px;
}

.category-item .arrow {
    font-size: 12px;
    color: #999;
    transition: color 0.2s;
}

.service-list {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
}

.service-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.service-list a:hover {
    color: #ea4c89;
}

/* Subcategory Menu - 왼쪽으로 변경 */
.subcategory-menu {
    position: fixed;
    top: 0;
    right: 350px;
    width: 250px;
    height: 100%;
    background-color: white;
    z-index: 1045;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.subcategory-menu.active {
    opacity: 1;
    visibility: visible;
}

.subcategory-content {
    padding: 20px 0;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list li {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subcategory-list li:hover {
    background-color: #f8f9fa;
    color: #ea4c89;
}

/* Promo Banner in Menu */
.promo-banner-menu {
    margin: 20px;
    background: linear-gradient(135deg, #ff9a56, #ff6b35);
    border-radius: 12px;
    padding: 15px;
    color: white;
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text {
    font-size: 14px;
    line-height: 1.3;
}

.promo-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    /*min-height: 80vh;*/
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.tag.active, .tag:hover {
    background: white;
    color: #333;
}

/* Carousel Styles */
.carousel-item {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.carousel-item:not(.active) {
    display: none !important;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: white;
}

.trending-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.trending-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
    display: inline-block;
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Portfolio Items */
.portfolio-item {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f8f9fa;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.designer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ea4c89;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.designer-badge {
    background: #ea4c89;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Footer */
footer a:hover {
    color: #ea4c89 !important;
}

/* Footer Company Info */
.company-info {
    line-height: 1.6;
}

.company-info p {
    margin-bottom: 0.5rem;
}

.company-info strong {
    color: #333;
    font-weight: 600;
}

.company-info .mx-2 {
    color: #dee2e6;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #ea4c89 !important;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .side-menu {
        width: 300px;
        right: -300px;
    }
    
    .subcategory-menu {
        right: 300px;
        width: 200px;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .carousel-item {
        min-height: 300px;
        text-align: center;
    }
    
    .carousel-item .row {
        flex-direction: column-reverse;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: -30px;
    }
}

@media (max-width: 576px) {
    .side-menu {
        width: 280px;
        right: -280px;
    }
    
    .subcategory-menu {
        right: 280px;
        width: 180px;
    }
    
    .carousel-item {
        min-height: 250px;
    }
    
    .hero-image {
        margin-top: 20px;
    }

    /* Footer responsive */
    .company-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .company-info .mx-2 {
        display: none;
    }

    .company-info span:not(.mx-2) {
        display: block;
        margin-bottom: 0.2rem;
    }
}