/* public/assets/css/style.css */

:root {
    --primary-color: #6a8caf;
    --secondary-color: #b3cde0;
    --accent-color: #ff9f43;
    --bg-gradient-start: #fdfbfb;
    --bg-gradient-end: #ebedee;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.main-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-main);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.mode-btn.active, .mode-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Input Sections */
.input-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.input-section.active {
    display: block;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    color: var(--primary-color);
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 140, 175, 0.1);
}

textarea {
    height: 100px;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    background: #5a7a9a;
}

/* Message Display */
.message-card {
    margin-top: 30px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
    animation: slideUp 0.5s ease;
}

.message-content p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
}

.message-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

/* Utilities */
.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.main-footer {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 20px;
    }
    
    .main-header h1 {
        font-size: 2rem;
    }
}
