﻿/* ===================================
   명언 랜덤 생성기 - 현대적 디자인
   =================================== */

:root {
    --primary-color: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #38BDF8;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #EFF6FF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header & Navigation */
/* Main Content */
.main {
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ========== Keyframe Animations ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Quote Section */
.quote-section {
    margin-bottom: 60px;
}

/* Quote Card */
.quote-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    animation: slideUp 0.6s ease-out;
}

.quote-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Quote Display */
.quote-display {
    margin-bottom: 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.quote-display::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.quote-text {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.quote-content {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

.quote-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Quote Controls */
.quote-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
    letter-spacing: 0.5px;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out;
}

.info-section h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.info-section h2:first-of-type {
    margin-top: 0;
}

.info-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

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

.info-section ul li {
    padding: 12px 0 12px 32px;
    position: relative;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
}

.info-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .quote-card {
        padding: 40px 24px;
    }

    .quote-display {
        min-height: 160px;
        padding: 30px 20px;
    }

    .quote-content {
        font-size: 22px;
    }

    .quote-controls {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 40px 24px;
    }

    .info-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .quote-card {
        padding: 24px 16px;
    }

    .quote-display {
        min-height: 140px;
        padding: 20px 16px;
    }

    .quote-content {
        font-size: 18px;
    }

    .quote-author {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .btn-icon {
        font-size: 16px;
    }

    .info-section {
        padding: 24px 16px;
    }

    .info-section h2 {
        font-size: 20px;
    }

    .info-section ul li {
        padding: 10px 0 10px 28px;
    }

    .copy-notification {
        bottom: 10px;
        right: 10px;
        font-size: 13px;
    }
}
