/* CranSEO Settings Styles */
.cranseo-settings-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.cranseo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cranseo-header-content {
    flex: 2;
}

.cranseo-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: white;
}

.cranseo-icon {
    margin-right: 15px;
    font-size: 1.2em;
}

.cranseo-subtitle {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.cranseo-header-stats {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.cranseo-stat-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.cranseo-stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.cranseo-stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Content Layout */
.cranseo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* Form Styles */
.cranseo-settings-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cranseo-settings-form h2 {
    color: #3d3d3d;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-top: 30px;
}

.cranseo-settings-form h2:first-child {
    margin-top: 0;
}

.cranseo-section-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.cranseo-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cranseo-api-key-input {
    flex: 1;
    min-width: 300px;
}

.cranseo-status-indicator {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-missing {
    background: #ffebee;
    color: #d32f2f;
}

.status-valid {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-invalid {
    background: #fff3e0;
    color: #f57c00;
}

.cranseo-test-area {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cranseo-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.cranseo-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cranseo-checkbox-item:hover {
    background: #e9ecef;
}

.cranseo-checkbox-label {
    margin-left: 8px;
    font-weight: 500;
}

/* Sidebar Cards */
.cranseo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cranseo-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cranseo-card h3 {
    margin: 0 0 20px 0;
    color: #3d3d3d;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.cranseo-card-content {
    line-height: 1.6;
}

.cranseo-sitemap-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-active {
    color: #2e7d32;
    font-weight: 600;
}

.status-inactive {
    color: #d32f2f;
    font-weight: 600;
}

.cranseo-action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.cranseo-sitemap-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.cranseo-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cranseo-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cranseo-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cranseo-tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.cranseo-tips-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cranseo-content {
        grid-template-columns: 1fr;
    }
    
    .cranseo-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cranseo-header-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cranseo-header-stats {
        flex-direction: column;
    }
    
    .cranseo-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .cranseo-field-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animation for status updates */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cranseo-stat-card {
    animation: fadeIn 0.6s ease-out;
}

.success {
    color: #2e7d32;
    font-weight: 500;
}

.error {
    color: #d32f2f;
    font-weight: 500;
}

.testing {
    color: #f57c00;
    font-style: italic;
}