/* 
 * Website Analyzer Plugin Styles
 */

.website-analyzer-container {
    font-family: "Manrope", sans-serif;
    background: #ffffff;
    color: #333;
    padding: 30px;
    width: 800px;
    max-width: 800px;
}

.website-analyzer-container h2, 
.website-analyzer-container h3, 
.website-analyzer-container h4, 
.website-analyzer-container h5 {
    color: #005a9e;
    font-family: "Manrope", sans-serif;
}

.website-analyzer-analyzer-form {
    background: #ffffff;
    padding: 30px 40px;
    border: 1px solid #cce4f6;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    width: 600px;
    margin-bottom: 30px;
}

.website-analyzer-analyzer-form input[type="text"] { 
    padding: 10px;
    margin-top: 8px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
}

.website-analyzer-analyzer-form input[type="submit"] {
    background-color: #0078d4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
	text-transform: uppercase;
}

.website-analyzer-analyzer-form input[type="submit"]:hover {
    background-color: #005a9e;
}

.website-analyzer-container .website-analyzer-center-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin: 0 auto;
    font-family: "Manrope", sans-serif;
}

.website-analyzer-container .website-analyzer-not-found {
    color: red;
    font-weight: bold;
}

.website-analyzer-container .website-analyzer-section {
    background: #ffffff;
    border: 1px solid #d3eafd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-family: "Manrope", sans-serif;
}

.website-analyzer-container table {
    border-collapse: collapse;
    width: 780px;
    margin-top: 20px;
    background-color: #ffffff;
    font-size: 15px;
    font-family: "Manrope", sans-serif;
}

.website-analyzer-container table th, .website-analyzer-container table td {
    border: 1px solid #cce4f6;
    padding: 12px;
    text-align: left;
}

.website-analyzer-container table th {
    background-color: #eaf4fd;
    color: #005a9e;
}

.website-analyzer-container pre {
    background-color: #f4f8fc;
    border-left: 5px solid #0078d4;
    padding: 15px;
    overflow: auto;
    margin-top: 10px;
    width: 800px;
    box-sizing: border-box;
}

.website-analyzer-container code {
    font-family: Consolas, monospace;
    font-size: 14px;
}

.website-analyzer-container ul {
    background: #eaf4fd;
    border-left: 5px solid #0078d4;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    list-style: none; 
    margin-top: 5px;
}

.website-analyzer-container ul li:before {
    content: '\2713';
    display: inline-block;
    color: #0aac41;
    padding: 0 6px 0 0;
}

.website-analyzer-container .website-analyzer-start-over-btn {
	background-color: #dc3545;
	color: white;
	width: 260px;
	height: 55px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	border: none;
	border-radius: 8px;
	/* margin-top: 30px; */
	display: inline-block;
	text-align: center;
	font-family: "Manrope", sans-serif;
}
.website-analyzer-generate-content-link-btn {
	width: 260px;
	height: 55px;
	background: #0087ff;
	text-align: center;
	color: #fff;
	text-decoration: none;
	display: flex;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold; 
	justify-content: center;
	align-items: center;
}
.website-analyzer-generate-content-link-btn:hover {
    background-color: #1074cd;
}
.website-analyzer-container .website-analyzer-start-over-btn:hover {
    background-color: #c82333;
}

/* Download Report Button Styles */
.website-analyzer-container .website-analyzer-download-btn,  .website-analyzer-download-text-btn {
	background-color: #28a745;
	color: white;
	width: 260px;
	height: 55px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	border: none;
	border-radius: 8px; 
	display: inline-block;
	text-align: center;
	font-family: "Manrope", sans-serif;
}

.website-analyzer-container .website-analyzer-download-btn:hover, .website-analyzer-download-text-btn:hover {
    background-color: #168b30;
}

 #website-analyzer-generate-btn:disabled, 
 #website-analyzer-generate-btn[disabled],
 #website-analyzer-analyze-btn:disabled, 
 #website-analyzer-analyze-btn[disabled] {
	opacity: 0.6;
	cursor: no-drop;
}

.website-analyzer-container .website-analyzer-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.website-analyzer-container h4 {
    margin-top: 0;
}

.website-analyzer-container p {
    font-size: 16px;
    margin-bottom: 0; 
}

p.website-analyzer-container-tips {
    font-weight: 500;
    padding-top: 10px !important;
}

.website-analyzer-container h5 {
    margin-bottom: 5px;
    font-size: 17px !important;
    font-weight: 600;
    margin-top: 40px;
}

.website-analyzer-container h5.we-mt-0 {
    margin-top: 0;
}

.website-analyzer-container-brief {
    margin-top: 5px;
}

.website-analyzer-container ul li {
    margin-bottom: 6px;
}

.website-analyzer-container h2 {
    margin-top: 0;
    font-size: 25px;
}


/* *************************************************************************************************************************/
/* Content Form Additional Styles */
#website-analyzer-content-form select {
    width: 100%;
    padding: 10px;
    margin-top: 8px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
    background-color: #ffffff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

#website-analyzer-content-form select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
}

#website-analyzer-content-form textarea { 
    padding: 10px;
    margin-top: 8px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
    resize: vertical;
    min-height: 100px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

#website-analyzer-content-form textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
}

#website-analyzer-content-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

#website-analyzer-content-form label, .website-analyzer-analyzer-form label {
	color: #005a9e;
	font-weight: 600;
	margin-bottom: 5px;
	display: block;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
}
.website-analyzer-field-wrap {
	margin-bottom: 25px;
	width: 100%;
	display: flex;
	flex-direction: column;
}
  

.website-analyzer-generate-button:hover {
    background-color: #005a9e;
}

.website-analyzer-generate-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Content Loading Styles */
#website-analyzer-content-loading {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #cce4f6;
    border-radius: 8px;
    margin-top: 20px;
}

#website-analyzer-content-loading p {
    color: #0078d4;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

#website-analyzer-progress_bar_container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

#website-analyzer-progress_bar {
    height: 20px;
    background: linear-gradient(90deg, #0078d4, #005a9e);
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: contentPulse 2s infinite;
}

@keyframes contentPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Content Results Styles */
#website-analyzer-content-results {
	margin-top: 20px;
	max-width: 900px;
}

.website-analyzer-content-output-wrapper {
    background: #ffffff;
    border: 1px solid #d3eafd;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.website-analyzer-content-info-header {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0078d4;
    margin: 15px 0;
    border-radius: 4px;
}

.website-analyzer-content-info-header p {
    margin: 5px 0;
    font-size: 14px;
}

.website-analyzer-content-info-header strong {
    color: #005a9e;
    font-weight: 600;
}

.website-analyzer-generated-content-display {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
    line-height: 1.6;
}

.website-analyzer-generated-content-display p {
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
}

.website-analyzer-content-generator-title {
    color: #005a9e;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Loading states for existing form too */
#website-analyzer-loading {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #cce4f6;
    border-radius: 8px;
    margin-top: 20px;
}

#website-analyzer-loading p {
    color: #0078d4;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Print-specific styles */
@media print {
    .website-analyzer-button-container,
    .website-analyzer-download-btn,
    .website-analyzer-start-over-btn {
        display: none !important;
    }
    
    .website-analyzer-section {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    
    pre {
        page-break-inside: avoid;
        max-height: 300px;
        overflow: hidden;
        font-size: 10px;
    }
    
    h2, h3, h4, h5 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* Schema section specific styling for better PDF layout */
.schema-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
}

.schema-section h4 {
    margin-top: 0;
    page-break-after: avoid;
}



/* iPad/Tablet responsive styles */
@media (max-width: 1024px) {
    .website-analyzer-container {
        padding: 20px;
    }
    
    .website-analyzer-analyzer-form {
        width: 100%;
        max-width: 700px;
        padding: 25px;
    }
    
    .website-analyzer-container pre {
        width: 100%;
        font-size: 13px;
        overflow-x: auto;
    }
    
    #website-analyzer-content-results {
        max-width: 100%;
    }
    
    .website-analyzer-content-output-wrapper {
        width: 100%;
        padding: 20px;
    }
    
    .website-analyzer-container .website-analyzer-button-container {
        gap: 15px;
    }
    
    .website-analyzer-container .website-analyzer-download-btn,
    .website-analyzer-container .website-analyzer-download-text-btn,
    .website-analyzer-container .website-analyzer-start-over-btn {
        width: 220px;
        height: 50px;
        font-size: 15px;
    }
    
    /* Full width tables for iPad */
    .website-analyzer-container table {
        width: 100%;
        font-size: 14px;
        table-layout: auto;
    }
    
    .website-analyzer-container table th,
    .website-analyzer-container table td {
        padding: 10px 8px;
        font-size: 13px;
        word-wrap: break-word;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .website-analyzer-container {
        width: 100%;
        min-width: auto;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .website-analyzer-analyzer-form {
        width: 100%;
        max-width: none;
        padding: 20px 15px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    .website-analyzer-field-wrap {
        margin-bottom: 20px;
    }
    
    .website-analyzer-analyzer-form input[type="text"],
    #website-analyzer-content-form select,
    #website-analyzer-content-form textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .website-analyzer-content-output-wrapper {
        width: 100%;
        padding: 15px;
        min-width: auto;
        box-sizing: border-box;
    }
    
    #website-analyzer-content-results {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .website-analyzer-container .website-analyzer-button-container {
        gap: 15px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .website-analyzer-container .website-analyzer-download-btn,
    .website-analyzer-container .website-analyzer-download-text-btn,
    .website-analyzer-container .website-analyzer-start-over-btn {
        width: 100%;
        max-width: 280px;
        height: 50px;
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Full width tables for mobile */
    .website-analyzer-container table {
        width: 100%;
        font-size: 13px;
        table-layout: auto;
        display: table;
        white-space: normal;
    }
    
    .website-analyzer-container table th,
    .website-analyzer-container table td {
        padding: 8px 6px;
        font-size: 12px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Specific styling for schema status table */
    .website-analyzer-container .website-analyzer-section table th:first-child,
    .website-analyzer-container .website-analyzer-section table td:first-child {
        width: 60%;
    }
    
    .website-analyzer-container .website-analyzer-section table th:last-child,
    .website-analyzer-container .website-analyzer-section table td:last-child {
        width: 40%;
    }
    
    .website-analyzer-container pre {
        font-size: 11px;
        width: 100%;
        overflow-x: auto;
        padding: 10px;
        box-sizing: border-box;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .website-analyzer-container .website-analyzer-section {
        padding: 15px;
        margin-top: 15px;
        box-sizing: border-box;
    }
    
    .website-analyzer-container h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .website-analyzer-container h3 {
        font-size: 18px;
    }
    
    .website-analyzer-container h4 {
        font-size: 16px;
    }
    
    .website-analyzer-container h5 {
        font-size: 15px;
        margin-top: 20px;
    }
    
    .website-analyzer-container p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .website-analyzer-container ul {
        padding: 10px;
        font-size: 14px;
    }
    
    .website-analyzer-content-info-header {
        padding: 10px;
        margin: 10px 0;
    }
    
    .website-analyzer-content-info-header p {
        font-size: 13px;
    }
    
    .website-analyzer-generated-content-display {
        padding: 15px;
        margin-top: 10px;
    }
    
    .website-analyzer-generated-content-display p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .website-analyzer-content-generator-title {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Loading and progress bar adjustments */
    #website-analyzer-loading,
    #website-analyzer-content-loading {
        padding: 15px;
        margin-top: 15px;
    }
    
    #website-analyzer-loading p,
    #website-analyzer-content-loading p {
        font-size: 14px;
    }
    
    #website-analyzer-progress_bar {
        height: 15px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .website-analyzer-container {
        padding: 10px;
    }
    
    .website-analyzer-analyzer-form {
        padding: 15px 10px;
    }
    
    .website-analyzer-content-output-wrapper {
        padding: 10px;
    }
    
    .website-analyzer-container .website-analyzer-section {
        padding: 10px;
    }
    
    .website-analyzer-container h2 {
        font-size: 18px;
    }
    
    .website-analyzer-container h3 {
        font-size: 16px;
    }
    
    .website-analyzer-container h4 {
        font-size: 15px;
    }
    
    .website-analyzer-container h5 {
        font-size: 14px;
    }
    
    .website-analyzer-container p,
    .website-analyzer-container ul {
        font-size: 13px;
    }
    
    .website-analyzer-container pre {
        font-size: 10px;
        padding: 8px;
    }
    
    /* Full width tables for small mobile */
    .website-analyzer-container table {
        width: 100%;
        font-size: 12px;
    }
    
    .website-analyzer-container table th,
    .website-analyzer-container table td {
        padding: 6px 4px;
        font-size: 11px;
        word-wrap: break-word;
    }
    
    /* Adjust column widths for very small screens */
    .website-analyzer-container .website-analyzer-section table th:first-child,
    .website-analyzer-container .website-analyzer-section table td:first-child {
        width: 55%;
    }
    
    .website-analyzer-container .website-analyzer-section table th:last-child,
    .website-analyzer-container .website-analyzer-section table td:last-child {
        width: 45%;
    }
    
    .website-analyzer-container .website-analyzer-download-btn,
    .website-analyzer-container .website-analyzer-download-text-btn,
    .website-analyzer-container .website-analyzer-start-over-btn {
        height: 45px;
        font-size: 14px;
    }
}
