:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #ffffff;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-color);
    padding: 20px 0;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.card:hover {
    transform: translateY(-5px);
}

.icon-area {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.result-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 2.4rem;
    word-break: keep-all;
}

.btn-primary {
    position: relative;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    background: #ff5252;
}

.content-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
    box-shadow: var(--shadow-md);
}

.content-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section ul, .content-section dl {
    padding-left: 20px;
}

.content-section dt {

    margin-top: 1rem;

}



.share-buttons {

    display: flex;

    justify-content: center;

    gap: 1rem;

    margin-top: 1rem;

}



.share-btn-twitter, .share-btn-facebook {

    text-decoration: none;

    padding: 0.5rem 1rem;

    border-radius: 8px;

    color: white;

    font-weight: bold;

}



.share-btn-twitter { background-color: #1DA1F2; }

.share-btn-facebook { background-color: #1877F2; }





footer {

    text-align: center;

    padding: 2rem 0;

    color: #666;

    font-size: 0.9rem;

}



.btn-secondary {

    background: var(--secondary-color);

    color: white;

    border: none;

    padding: 0.8rem 1.5rem;

    font-size: 1rem;

    font-weight: 700;

    border-radius: 50px;

    cursor: pointer;

    box-shadow: var(--shadow-md);

    transition: all 0.2s ease;

    margin-top: 1rem;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

}



.btn-secondary:hover {

    background: #45b8af;

}



/* Modal Styles */

.modal-container {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1000;

}



.modal-content {

    background: white;

    border-radius: 15px;

    padding: 2rem;

    box-shadow: var(--shadow-lg);

    width: 90%;

    max-width: 400px;

    text-align: left;

}



.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.5rem;

}



.modal-header h2 {

    margin: 0;

    color: var(--primary-color);

}



.close-btn {

    background: none;

    border: none;

    font-size: 1.5rem;

    cursor: pointer;

    color: #999;

}



.modal-body p {

    margin-bottom: 1.5rem;

}



.share-options {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;

}



.share-option-btn {

    background: #f0f0f0;

    border: none;

    border-radius: 10px;

    padding: 1rem;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    cursor: pointer;

    transition: background 0.2s;

    font-size: 0.9rem;

    font-weight: 600;

}



.share-option-btn:hover {

    background: #e0e0e0;

}



.share-option-btn i {

    font-size: 1.8rem;

    margin-bottom: 0.5rem;

}



/* Animations */

@keyframes float {

    0% { transform: translateY(0px); }

    50% { transform: translateY(-10px); }

    100% { transform: translateY(0px); }

}



@keyframes pop {

    0% { transform: scale(0.9); opacity: 0; }

    50% { transform: scale(1.1); }

    100% { transform: scale(1); opacity: 1; }

}



.animate-pop {

    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

}



/* Mobile Responsiveness */

@media (max-width: 480px) {

    .title {

        font-size: 2rem;

    }

    .card {

        padding: 2rem 1.5rem;

    }

    .result-text {

        font-size: 1.5rem;

    }

    .content-section {

        padding: 1.5rem;

    }

    .modal-content {

        width: 95%;

        padding: 1.5rem;

    }

}
