/* ===================================
   TOKYO COOKING CLASS - Components CSS
   =================================== */

/* --- Cards --- */
.content-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.card-thumbnail .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.content-card:hover .card-img { transform: scale(1.05); }
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 149, 108, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.content-card:hover .card-overlay { opacity: 1; }
.read-more-label {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255,255,255,0.8);
    padding: 8px 20px;
    border-radius: 30px;
}
.card-body { padding: 24px; }
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.card-category a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 149, 108, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}
.card-date {
    font-size: 0.78rem;
    color: #999;
}
.card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px;
}
.card-title a { color: var(--dark); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.88rem; color: #666; line-height: 1.7; margin-bottom: 16px; }

/* --- Recipe Cards --- */
.recipe-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.recipe-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.recipe-thumbnail .recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-img { transform: scale(1.05); }
.cuisine-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.recipe-body { padding: 20px; }
.recipe-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}
.recipe-title a { color: var(--dark); text-decoration: none; }
.recipe-title a:hover { color: var(--accent); }
.recipe-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #777;
}
.difficulty-초급 { color: #6bcb77; }
.difficulty-중급 { color: var(--accent); }
.difficulty-고급 { color: #e05a5a; }
.recipe-excerpt { font-size: 0.85rem; color: #666; line-height: 1.6; margin-bottom: 16px; }
.btn-recipe {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-recipe:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* --- Vlog Cards --- */
.vlog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vlog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.vlog-thumbnail-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.vlog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.vlog-card:hover .vlog-thumb-img { transform: scale(1.05); }
.vlog-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blush), var(--cream));
}
.vlog-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}
.vlog-card:hover .vlog-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.vlog-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}
.vlog-info { padding: 18px; }
.vlog-meta { margin-bottom: 6px; }
.vlog-date { font-size: 0.75rem; color: #999; }
.vlog-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.5;
}
.vlog-title a { color: var(--dark); text-decoration: none; }
.vlog-title a:hover { color: var(--accent); }
.vlog-excerpt { font-size: 0.82rem; color: #777; line-height: 1.6; margin: 0; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200,149,108,0.4);
}
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 13px 34px;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.btn-text:hover { gap: 10px; }
.btn-text .arrow { transition: transform 0.2s ease; }
.btn-text:hover .arrow { transform: translateX(4px); }

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-eyebrow {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 16px;
}
.section-title span { font-style: italic; color: var(--accent); }
.section-subtitle {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 16px auto 0;
}

/* --- Pagination --- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 60px 0 0;
}
.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    border: 1.5px solid #e8e0d8;
    transition: all 0.2s ease;
}
.page-numbers li .page-numbers.current,
.page-numbers li .page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- No Results --- */
.no-results {
    padding: 80px 20px;
    text-align: center;
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 12px;
}
.no-results-message { color: #777; margin-bottom: 32px; }
.no-results-search { max-width: 400px; margin: 0 auto 24px; }

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 32px;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #ccc; }

/* --- Tags --- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    display: inline-block;
    font-size: 0.78rem;
    color: #777;
    background: #f5f0ea;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tag-item:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Sidebar Widgets --- */
.widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
