:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ffd23f;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-box {
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 10px 20px;
    width: 100%;
    max-width: 400px;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.category-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.category-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.recipe-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.recipe-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover img {
    transform: scale(1.1);
}

.recipe-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recipe-difficulty {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recipe-time {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

/* 사이드바 광고 스타일 */
.sidebar-ad-left,
.sidebar-ad-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 600px;
    z-index: 1000;
    display: none;
}

.sidebar-ad-left {
    left: 0;
}

.sidebar-ad-right {
    right: 0;
}

.ad-content {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ad-placeholder {
    text-align: center;
    color: #6c757d;
}

.ad-placeholder i {
    margin-bottom: 10px;
}

.ad-placeholder p {
    margin: 10px 0;
    font-weight: 500;
}

.ad-placeholder small {
    color: #adb5bd;
}

/* 데스크톱에서만 사이드바 광고 표시 */
@media (min-width: 1400px) {
    .sidebar-ad-left,
    .sidebar-ad-right {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .recipe-card {
        margin-bottom: 20px;
    }
}
