/**
 * Frontend styles for T500 Resume Review plugin
 *
 * @package T500_Resume_Review
 * @since 0.0.1
 */

.t500-resume-review-wrapper {
    width: 100%;
    /* Removed min-height: 100vh to prevent Elementor from setting fixed height */
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.t500-resume-review-react-app {
    position: relative;
    z-index: 1;
}

/* Loading states */
.t500-resume-review-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.t500-resume-review-wrapper.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: t500-resume-review-spin 1s linear infinite;
}

@keyframes t500-resume-review-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.t500-resume-review-wrapper.error {
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    color: #d63638;
}

/* Success states */
.t500-resume-review-wrapper.success {
    padding: 20px;
    background: #f0f8f0;
    border: 1px solid #00a32a;
    border-radius: 4px;
    text-align: center;
    color: #00a32a;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .t500-resume-review-wrapper {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .t500-resume-review-wrapper {
        padding: 5px;
    }
}

/* Print styles */
@media print {
    .t500-resume-review-wrapper {
        background: white !important;
        color: black !important;
    }
}

/* Override Astra theme CSS for entry content */
.entry-content .wp-audio-shortcode,
.entry-content .wp-embedded-audio,
.entry-content .wp-embedded-video,
.entry-content .wp-video,
.entry-content p {
    margin-bottom: 0 !important;
}

/* Override for React app wrapper specifically */
.t500-resume-review-wrapper .entry-content p,
.t500-resume-review-wrapper p {
    margin-bottom: 0 !important;
}
