/* Funky Font Frenzy Styles */

.funky-container {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 15px;
    margin: 20px 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.funky-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.funky-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.funky-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

.funky-subtitle kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.funky-main {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.funky-controls,
.funky-export {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: bold;
}

.funky-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.funky-textarea:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.funky-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.funky-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.funky-color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.funky-color-picker:hover {
    transform: scale(1.1);
}

.funky-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 10px 0;
    font-size: 0.95rem;
}

.funky-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.gradient-controls,
.shadow-controls {
    margin-top: 10px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.effect-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.effect-controls label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.funky-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.funky-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.funky-slider::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.funky-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.funky-slider::-moz-range-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.funky-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.preview-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.text-preview {
    text-align: center;
    word-wrap: break-word;
    transition: all 0.3s ease;
    user-select: none;
}

.funky-button {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.funky-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.funky-button:active {
    transform: translateY(0);
}

.funky-button-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.funky-button-secondary:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.shortcuts-list {
    font-size: 0.85rem;
    line-height: 1.8;
}

.shortcuts-list kbd {
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 0 2px;
}

/* Animation classes */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px currentColor; }
    50% { text-shadow: 0 0 30px currentColor, 0 0 40px currentColor; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.animate-pulse {
    animation: pulse 1s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-wave {
    animation: wave 1s ease-in-out infinite;
}

.animate-glow {
    animation: glow 1.5s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .funky-main {
        grid-template-columns: 280px 1fr 250px;
    }
}

@media (max-width: 1200px) {
    .funky-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .funky-controls,
    .funky-export {
        max-height: none;
    }
    
    .funky-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .funky-container {
        padding: 10px;
    }
    
    .funky-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .funky-subtitle {
        font-size: 1rem;
    }
    
    .funky-preview {
        padding: 20px;
        min-height: 300px;
    }
}
