/* 
 * 생각이 보이는 교실 - 반응형 스타일시트
 * Responsive stylesheet for mobile and tablet devices
 */

/* ===== 태블릿 (768px 이하) ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        min-height: 250px;
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .tool-title {
        font-size: 1.3rem;
    }

    .tool-description {
        font-size: 0.95rem;
    }

    .tool-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* ===== 가로 모드 최적화 ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* ===== 대형 화면 (1200px 이상) ===== */
@media (min-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== 초대형 화면 (1600px 이상) ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== 인쇄 최적화 ===== */
@media print {
    .header,
    .footer,
    .theme-toggle,
    .tool-button,
    .new-badge {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .main-content {
        border-radius: 0;
        margin-top: 0;
    }

    .tool-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .hero {
        color: black;
        text-shadow: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ===== 감소된 움직임 선호 사용자 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
