/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Main Layout with Left Banner */
.main-layout {
  display: flex;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
  width: 100%;
}

.left-banner {
  flex: 0 0 120px;
  order: 1;
}

.main-content {
  flex: 1;
  order: 2;
  min-width: 0;
}

/* Left Banner Styles */
.left-banner {
  position: sticky;
  top: 20px;
  height: fit-content;
  width: 100%;
}

.banner-container {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.banner-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-content iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Right Banner Bottom Styles */
.right-banner-bottom {
  display: flex;
  justify-content: flex-end;
  margin: 30px 0;
}

.right-banner-bottom .banner-container {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 140px;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 50px;
}

/* Tool Card */
.tool-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

.tool-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.tool-card h2 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.tool-card p {
  color: #4a5568;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.tool-features {
  margin-bottom: 20px;
}

.tool-features span {
  display: block;
  color: #2d3748;
  font-size: 0.95rem;
  margin-bottom: 5px;
  padding-left: 10px;
}

.tool-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
}

.tool-card:hover .tool-button {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tool-card.coming-soon .tool-button {
  background: #a0aec0;
  cursor: not-allowed;
}

.tool-card.coming-soon:hover .tool-button {
  transform: none;
  box-shadow: none;
}

/* Daily Tip */
.daily-tip {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.daily-tip h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.tip-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #48bb78;
}

.tip-content p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* AdSense Styles */
.ad-section {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.ad-section .banner-container {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 140px;
}

.ad-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.ad-content {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.ad-content iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.ad-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.ad-placeholder p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.ad-placeholder small {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Footer */
footer {
  text-align: center;
  color: white;
  opacity: 0.8;
  font-size: 1.1rem;
  margin-top: 50px;
}

footer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-card {
    padding: 25px;
  }

  .tool-card h2 {
    font-size: 1.5rem;
  }

  .tool-card p {
    font-size: 1rem;
  }

  .daily-tip {
    padding: 20px;
  }

  .daily-tip h3 {
    font-size: 1.3rem;
  }

  .tip-content p {
    font-size: 1rem;
  }

  .ad-container {
    max-width: 100%;
    padding: 15px;
  }

  .ad-content {
    min-height: 60px;
  }

  .ad-placeholder p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  .tool-card {
    padding: 20px;
  }

  .tool-icon {
    font-size: 2.5rem;
  }

  .tool-card h2 {
    font-size: 1.3rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card {
  animation: fadeInUp 0.6s ease-out;
}

.tool-card:nth-child(2) {
  animation-delay: 0.1s;
}

.tool-card:nth-child(3) {
  animation-delay: 0.2s;
}

.tool-card:nth-child(4) {
  animation-delay: 0.3s;
}

.tool-card:nth-child(5) {
  animation-delay: 0.4s;
}

.tool-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Content Section Styles */
.content-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.guide-card h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.guide-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.guide-card ul {
  list-style: none;
  padding: 0;
}

.guide-card li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.guide-card li::before {
  content: "•";
  color: #48bb78;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Guide Content */
.guide-content {
  max-width: 100%;
}

.guide-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 4px solid #48bb78;
}

.guide-section h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.guide-section h5 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
  font-weight: 500;
}

.guide-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.guide-section ul {
  list-style: none;
  padding: 0;
}

.guide-section li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.guide-section li::before {
  content: "✓";
  color: #48bb78;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.guide-section strong {
  color: white;
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-section h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.faq-item h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.faq-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for Content Sections */
@media (max-width: 768px) {
  /* 모바일에서는 왼쪽 배너를 숨김 */
  .main-layout {
    flex-direction: column;
    gap: 0;
  }

  .left-banner {
    display: none;
  }

  .ad-container {
    max-width: 100%;
    padding: 15px;
  }

  .ad-content iframe {
    width: 100%;
    height: 100px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-section {
    padding: 25px;
    margin: 25px 0;
  }

  .content-section h3 {
    font-size: 1.6rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-card {
    padding: 20px;
  }

  .guide-card h4 {
    font-size: 1.2rem;
  }

  .guide-section {
    padding: 20px;
  }

  .guide-section h4 {
    font-size: 1.2rem;
  }

  .faq-section {
    padding: 25px;
  }

  .faq-section h3 {
    font-size: 1.6rem;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) {
  /* 태블릿에서는 왼쪽 배너를 숨김 */
  .main-layout {
    flex-direction: column;
    gap: 0;
  }

  .left-banner {
    display: none;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 20px;
  }

  .content-section h3 {
    font-size: 1.4rem;
  }

  .guide-card {
    padding: 15px;
  }

  .guide-section {
    padding: 15px;
  }

  .faq-section {
    padding: 20px;
  }

  .faq-item {
    padding: 15px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}
