/* ===================================
   은하수다방 커스텀 스타일
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(8px)) {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Focus styles */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer,
    button,
    .no-print {
        display: none !important;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Text balance */
.text-balance {
    text-wrap: balance;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom gradient backgrounds */
.gradient-indigo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Shadow variations */
.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ----- Component Styles ----- */

/* Video Container (16:9 Aspect Ratio) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
}

/* Content Max Width */
.content-max-width {
    max-width: 900px;
}

/* Profile Image Blur */
.profile-blur {
    filter: blur(8px);
}

/* Retina Background Image */
.bg-retina {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile Logout Button Width */
.mobile-logout-width {
    width: calc(100% - 2rem);
}

/* Primary CTA Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: #4f46e5;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #4338ca;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Feature Card */
.feature-card {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
}

/* Section Title */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Package Card */
.package-card {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.package-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .package-card {
        padding: 2rem;
    }
}

/* Package Card - Popular */
.package-card-popular {
    border: 2px solid #4f46e5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.package-card-popular:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
