/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Softer, textured background */
    background-color: #f4f7f6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4d6d8' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 20px;
}

/* --- Quote Container --- */
/* --- Quote Container --- */
.quote-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(100, 100, 100, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 750px;
    width: 90%;
    text-align: center;
    transition: all 0.4s ease;
    /* This padding will now scale with the screen size */
    padding: clamp(1.5rem, 5vw, 3rem);
}

/* --- Quote Text & Author Styling --- */
#quote-wrapper {
    transition: opacity 0.5s ease-in-out;
}

.quote-text {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    /* This font size will now scale fluidly */
    font-size: clamp(1.25rem, 5vw, 2.25rem); 
}

.quote-author {
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 2.5rem;
    /* This font size will also scale fluidly */
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}


/* --- Button Styling --- */
#new-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
    font-family: 'Poppins', sans-serif;
    /* A more sophisticated, calm color */
    background-color: #48a9a6;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 169, 166, 0.2);
}

#new-quote-btn:hover {
    background-color: #40918e;
    box-shadow: 0 6px 20px rgba(72, 169, 166, 0.3);
    transform: translateY(-3px);
}

#new-quote-btn:active {
    transform: translateY(-1px);
}

/* Animate the icon inside the button */
#new-quote-btn .icon-rotate {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

#new-quote-btn:hover .icon-rotate {
    transform: rotate(180deg);
}



/* --- Button Container --- */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 40px;
}

/* Remove margin from the individual button */
#new-quote-btn {
    margin-bottom: 0;
}

/* Style for the new Copy button */
#copy-btn {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#copy-btn:hover {
    background-color: #e2e8f0;
}


/* --- Skeleton Loader --- */
#skeleton-loader {
    width: 100%;
}

.skeleton-line {
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    /* Shimmer animation */
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-line:nth-child(2) {
    width: 90%;
}

.skeleton-line.short {
    width: 50%;
    height: 16px;
    margin-top: 25px;
}

@keyframes pulse {
    0% {
        background-color: #e2e8f0;
    }
    50% {
        background-color: #cbd5e1;
    }
    100% {
        background-color: #e2e8f0;
    }
}

/* --- Utility Class --- */
.hidden {
    display: none;
}