@charset "UTF-8";

/* ============================================
   AI Web Upgrade - Professional Audit Styles
   With Unicode Escape Codes for Emoji Support
   ============================================ */

/* Container */
.aiwebupgrade-audit-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.form-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Form */
.audit-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* Form Fields */
.form-field {
    margin-bottom: 28px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-field input[type="url"],
.form-field input[type="email"],
.form-field select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #fafafa;
}

.form-field input[type="url"]:focus,
.form-field input[type="email"]:focus,
.form-field select:focus {
    outline: none;
    border-color: #4A90E2;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.field-hint {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 6px;
}

/* Checkbox Field */
.checkbox-field {
    margin-bottom: 32px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-size: 14px;
    color: #555;
}

.checkbox-label a {
    color: #4A90E2;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #4A90E2;
    background: #ffffff;
    border: 2px solid #4A90E2;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4A90E2;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 50px 20px;
    margin-top: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    margin: 0;
}

.loading-text .sub-text {
    display: block;
    font-size: 14px;
    color: #95a5a6;
    margin-top: 8px;
    font-weight: normal;
}

/* Form Note */
.form-note {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 20px;
}

/* ============================================
   AUDIT OUTPUT - PREMIUM STYLING
   ============================================ */

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.results-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

/* Audit Output Container */
.audit-output {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

/* Report Header */
.audit-output h1:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 50px;
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    border: none;
}

/* Section Headers */
.audit-output h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 50px 50px 25px 50px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.audit-output h2:first-of-type {
    margin-top: 40px;
}

.audit-output h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 30px 50px 15px 50px;
}

/* Paragraphs and Content */
.audit-output p,
.audit-output > div {
    padding: 0 50px;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    font-size: 16px;
}

/* Lists */
.audit-output ul,
.audit-output ol {
    margin: 20px 50px;
    padding-left: 30px;
}

.audit-output li {
    margin-bottom: 12px;
    color: #444;
    line-height: 1.7;
}

.audit-output li strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Issue Cards (for Critical Issues) */
.audit-output ul li {
    background: #fff;
    border-left: 5px solid #e74c3c;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.15);
    list-style: none;
    margin-left: 0;
    transition: all 0.3s ease;
}

.audit-output ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.25);
}

/* Issue Name Styling */
.audit-output ul li strong:first-of-type {
    display: block;
    font-size: 17px;
    color: #e74c3c;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Success Items (What's Working Well) */
.audit-output h2:nth-of-type(2) ~ ul li {
    border-left-color: #27ae60;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.15);
}

.audit-output h2:nth-of-type(2) ~ ul li:hover {
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.25);
}

.audit-output h2:nth-of-type(2) ~ ul li strong:first-of-type {
    color: #27ae60;
}

/* Add checkmarks to "What's Working Well" section */
.audit-output h2:nth-of-type(2) ~ ul li::before {
    content: '\2713'; /* ✓ Unicode checkmark */
    color: #27ae60;
    font-weight: 700;
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
    font-family: Arial, sans-serif;
}

/* ============================================
   TABLES - PERFECT ALIGNMENT
   ============================================ */

.audit-output table {
    width: calc(100% - 100px);
    margin: 30px 50px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    table-layout: fixed;
}

/* Table Headers */
.audit-output table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    text-align: center;
    border: none;
    white-space: nowrap;
}

/* First column (Aspect/Terület) - wider, left aligned */
.audit-output table th:first-child,
.audit-output table td:first-child {
    text-align: left;
    width: 40%;
}

/* Second column (Score/Pontszám) - centered */
.audit-output table th:nth-child(2),
.audit-output table td:nth-child(2) {
    text-align: center;
    width: 30%;
}

/* Third column (Priority/Prioritás) - centered */
.audit-output table th:nth-child(3),
.audit-output table td:nth-child(3) {
    text-align: center;
    width: 30%;
}

/* Table Data Cells */
.audit-output table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 15px;
    vertical-align: middle;
}

/* Score column - bold numbers, centered */
.audit-output table td:nth-child(2) {
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
}

/* Priority column - bigger emojis, centered */
.audit-output table td:nth-child(3) {
    font-size: 28px;
    line-height: 1;
}

/* Table Rows */
.audit-output table tbody tr {
    background: #ffffff;
    transition: all 0.3s ease;
}

.audit-output table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.audit-output table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    transform: scale(1.005);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12);
}

.audit-output table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Legend */
.audit-output table + p {
    margin: 10px 50px 30px 50px;
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blockquotes */
.audit-output blockquote {
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 50px;
    background: #f8f9ff;
    border-radius: 8px;
    color: #555;
    font-style: italic;
}

/* Code Blocks */
.audit-output code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e74c3c;
}

/* ============================================
   NUMBERED LISTS - ENHANCED
   ============================================ */

.audit-output ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    margin: 20px 50px;
}

.audit-output ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 65px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.audit-output ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    flex-shrink: 0;
}

.audit-output ol li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
    transition: all 0.3s ease;
}

/* ============================================
   UPGRADE CTA SECTION
   ============================================ */

.audit-output h2:last-of-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 50px;
    margin: 60px 0 0 0;
    border: none;
    border-radius: 0;
    font-size: 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Rocket emoji in background */
.audit-output h2:last-of-type::before {
    content: '\1F680'; /* 🚀 Unicode rocket */
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* Upgrade Section Content */
.audit-output h2:last-of-type ~ p,
.audit-output h2:last-of-type ~ ul {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    padding: 30px 50px;
    margin: 0;
}

/* Upgrade List Items - Checkmarks */
.audit-output h2:last-of-type ~ ul li::before {
    content: '\2713'; /* ✓ Unicode checkmark */
    color: #27ae60;
    font-weight: 700;
    margin-right: 10px;
    font-size: 18px;
}

/* Bottom Padding */
.audit-output > *:last-child {
    padding-bottom: 50px;
}

/* Results Footer */
.results-footer {
    margin-top: 40px;
    text-align: center;
}

.email-notification {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Email notification icon */
.email-notification::before {
    content: '\2709'; /* ✉ Unicode envelope */
    font-size: 20px;
    margin-right: 10px;
}

/* Error Display */
.error-display {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.error-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.error-display h3 {
    color: #e74c3c;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-display p {
    color: #555;
    font-size: 16px;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .aiwebupgrade-audit-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .audit-form {
        padding: 30px 25px;
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .form-header p {
        font-size: 16px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    #new-audit-btn {
        align-self: stretch;
    }
    
    .audit-output h1:first-child,
    .audit-output h2,
    .audit-output h3,
    .audit-output p,
    .audit-output ul,
    .audit-output ol,
    .audit-output blockquote {
        padding-left: 25px;
        padding-right: 25px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .audit-output table {
        width: calc(100% - 50px);
        margin: 20px 25px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .audit-output table th,
    .audit-output table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .audit-output ol li {
        padding-left: 50px;
    }
    
    .audit-output ol li::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .audit-form {
        padding: 25px 20px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 16px 24px;
    }
    
    .audit-output h1:first-child {
        font-size: 22px;
        padding: 30px 25px;
    }
    
    .audit-output h2 {
        font-size: 20px;
        margin-left: 25px;
        margin-right: 25px;
    }
    
    .audit-output table {
        width: calc(100% - 30px);
        margin: 15px 15px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .form-header,
    .btn-primary,
    .btn-secondary,
    .loading-indicator,
    .form-note,
    .results-header button,
    .email-notification {
        display: none;
    }
    
    .audit-output {
        box-shadow: none;
        padding: 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.form-field input:focus,
.form-field select:focus,
button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .audit-output table th {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #000;
    }
}