/**
 * Custom Front Page Styles
 * Stylish and Modern Design Enhancement
 * Note: Only adds visual effects without changing existing layout
 */

/* ========================================
   CSS Variables for Easy Customization
======================================== */
:root {
  --accent-color: #3498db;
  --accent-hover: #2980b9;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Enhancements
======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   Header Slider Enhancement
======================================== */
#header_slider .item .caption {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#header_slider .item .catch {
  letter-spacing: 0.05em;
}

/* Scroll indicator enhancement */
#main_contents_link {
  transition: var(--transition-smooth);
}

#main_contents_link:hover {
  opacity: 0.8;
}

/* ========================================
   Headlines Enhancement
======================================== */
.cb_headline.common_headline {
  position: relative;
  padding-bottom: 15px;
}

.cb_headline.common_headline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 2px;
}

/* ========================================
   Image Carousel Enhancement
======================================== */
.image_carousel .item img {
  transition: var(--transition-smooth);
}

.image_carousel .item:hover img {
  transform: scale(1.03);
}

/* ========================================
   Design Content Enhancement
======================================== */
.design_content .layer_image {
  transition: var(--transition-smooth);
}

.design_content:hover .layer_image img {
  transform: scale(1.02);
}

.design_content .catch {
  letter-spacing: 0.03em;
}

.design_content .desc {
  line-height: 1.9;
}

/* ========================================
   Box Content Enhancement
======================================== */
.box_content .content {
  transition: var(--transition-smooth);
}

.box_content .content:hover {
  box-shadow: var(--shadow-hover);
}

.box_content .content .bg_image {
  transition: var(--transition-smooth);
}

.box_content .content:hover .bg_image {
  transform: scale(1.03);
}

.box_content .catch {
  line-height: 1.5;
}

.box_content .desc {
  line-height: 1.8;
}

/* ========================================
   Banner Content Enhancement
======================================== */
.banner_content .bg_image {
  transition: transform 6s ease-out;
}

.banner_content:hover .bg_image {
  transform: scale(1.05);
}

.banner_content .catch {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.03em;
}

.banner_content .desc {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Interview List Enhancement
======================================== */
.interview_list .item {
  transition: var(--transition-smooth);
}

.interview_list .item:hover {
  box-shadow: var(--shadow-hover);
}

.interview_list .item .image_wrap {
  overflow: hidden;
}

.interview_list .item .image {
  transition: var(--transition-smooth);
}

.interview_list .item:hover .image {
  transform: scale(1.05);
}

.interview_list .item .category a {
  transition: var(--transition-smooth);
}

.interview_list .item .category a:hover {
  opacity: 0.8;
}

.interview_list .item .title {
  line-height: 1.6;
}

/* ========================================
   Review List Enhancement
======================================== */
.review_list .item,
.review_list_type2 .item {
  transition: var(--transition-smooth);
  position: relative;
}

.review_list .item::before,
.review_list_type2 .item::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 3em;
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.review_list .item:hover,
.review_list_type2 .item:hover {
  box-shadow: var(--shadow-soft);
}

.review_list .item .post_content,
.review_list_type2 .item .post_content {
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* ========================================
   FAQ List Enhancement
======================================== */
.faq_list .item {
  transition: var(--transition-smooth);
}

.faq_list .item:hover {
  box-shadow: var(--shadow-soft);
}

.faq_list .question {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq_list .question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq_list .answer {
  line-height: 1.9;
}

/* ========================================
   Chart Content Enhancement
======================================== */
.chart_item {
  transition: var(--transition-smooth);
}

.chart_item:hover {
  box-shadow: var(--shadow-soft);
}

.chart_labels .item {
  margin: 5px 10px;
}

/* ========================================
   Design Button Enhancement
======================================== */
.design_button a {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.design_button a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
  pointer-events: none;
}

.design_button a:hover::before {
  left: 100%;
}

.design_button a:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Free Space Enhancement
======================================== */
.cb_free_space .post_content p {
  line-height: 1.9;
}

/* ========================================
   News Ticker Enhancement
======================================== */
.index_news_ticker .item a {
  transition: var(--transition-smooth);
}

.index_news_ticker .item a:hover {
  opacity: 0.7;
}

/* ========================================
   Link & Image Hover Effects
======================================== */
.animate_background .image {
  transition: var(--transition-smooth);
}

.animate_background:hover .image {
  transform: scale(1.05);
}

/* Card hover lift effect */
article.item {
  transition: var(--transition-smooth);
}

article.item:hover {
  transform: translateY(-3px);
}

/* ========================================
   Smooth Image Loading
======================================== */
img {
  transition: opacity 0.3s ease;
}

/* ========================================
   Text Improvements
======================================== */
.post_content {
  line-height: 1.9;
}

.post_content p {
  margin-bottom: 1.5em;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media screen and (max-width: 767px) {
  .cb_headline.common_headline::after {
    width: 40px;
    height: 2px;
  }

  .review_list .item::before,
  .review_list_type2 .item::before {
    font-size: 2.5em;
    top: 10px;
    left: 15px;
  }

  article.item:hover {
    transform: none;
  }
}

/* ========================================
   Utility Classes (optional use)
======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
