/* Modern CSS with improved design */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1s ease;
}

#quote-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

#quote-content h1 {
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.author-section {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    margin: 20px 0 30px 0;
    text-align: right;
    color: #34495e;
}

#controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-buttons a {
    color: #3498db;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
}

.social-buttons a:hover {
    transform: translateY(-3px);
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.new-quote-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.new-quote-button:active {
    transform: translateY(0);
}

.new-quote-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

.maggie {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 300;
}

.fa-quote-left {
    margin-right: 10px;
    opacity: 0.7;
}

/* Smooth transitions for quote changes */
.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    #quote-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    #controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-buttons {
        justify-content: center;
        order: 2;
    }
    
    .new-quote-button {
        order: 1;
        justify-content: center;
    }
    
    .author-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    #quote-container {
        padding: 20px 15px;
    }
}

