/* Saintly.info Random Quotes Generator Styles */

.saintly-quote-widget {
    margin: 20px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.saintly-quote-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.saintly-quote-logo {
    font-size: 60px;
    margin-bottom: 10px;
}

.saintly-quote-header h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: bold;
}

.saintly-quote-category {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 10px 0 0 0;
    font-style: italic;
}

.saintly-quote-display {
    background: white;
    padding: 40px;
    border-radius: 15px;
    min-height: 150px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.quote-placeholder {
    text-align: center;
    color: #999;
    font-size: 18px;
    padding: 30px 0;
}

.quote-text {
    font-size: 24px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    padding-left: 30px;
}

.quote-text:before {
    content: '"';
    font-size: 60px;
    position: absolute;
    left: -10px;
    top: -10px;
    color: #667eea;
    font-family: Georgia, serif;
}

.quote-source {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.quote-author {
    font-size: 18px;
    color: #667eea;
    font-weight: bold;
    text-align: right;
    font-style: normal;
    margin-bottom: 8px;
}

.quote-author:before {
    content: '— ';
}

.quote-book {
    font-size: 16px;
    color: #888;
    text-align: right;
    font-style: italic;
    margin-top: 5px;
}

.quote-book:before {
    content: 'From: ';
    font-weight: normal;
}

.saintly-quote-btn {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.saintly-quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

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

.saintly-quote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.saintly-quote-loading {
    text-align: center;
    padding: 20px 0;
}

.saintly-quote-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: saintly-quote-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes saintly-quote-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.saintly-quote-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.saintly-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.saintly-action-btn:hover {
    background: white;
    color: #667eea;
}

.saintly-quote-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animation for quote appearance */
.quote-fade-in {
    animation: quoteFadeIn 0.6s ease-out;
}

@keyframes quoteFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .saintly-quote-widget {
        padding: 25px;
    }

    .saintly-quote-header h2 {
        font-size: 24px;
    }

    .saintly-quote-logo {
        font-size: 48px;
    }

    .saintly-quote-display {
        padding: 25px;
    }

    .quote-text {
        font-size: 20px;
        padding-left: 20px;
    }

    .quote-text:before {
        font-size: 40px;
        left: -5px;
        top: -5px;
    }

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

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

    .saintly-quote-btn {
        font-size: 18px;
        padding: 15px;
    }

    .saintly-action-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Print styles */
@media print {
    .saintly-quote-btn,
    .saintly-quote-actions {
        display: none;
    }

    .saintly-quote-widget {
        background: white;
        box-shadow: none;
    }

    .saintly-quote-header h2,
    .saintly-quote-category {
        color: #333;
    }

    .quote-author,
    .quote-book {
        color: #333;
    }
}
