/**
 * Visual Sitemap Admin Styles
 * 
 * @package    Rocketship_Seo
 * @subpackage Rocketship_Seo/admin/css
 * @since      1.0.0
 */

/* ==========================================================================
   VISUAL SITEMAP SETTINGS PAGE
   ========================================================================== */

.rocketship-sitemap-settings {
    margin-top: 20px;
}

.rocketship-sitemap-settings .rocketship-admin-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rocketship-sitemap-settings .rocketship-admin-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #23282d;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rocketship-sitemap-settings .rocketship-admin-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   SITEMAP URL DISPLAY
   ========================================================================== */

.sitemap-url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.sitemap-url-display code {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #007cba;
    word-break: break-all;
}

#copy-sitemap-url {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#copy-sitemap-url:hover {
    background: #005a87;
}

/* ==========================================================================
   SITEMAP STATISTICS
   ========================================================================== */

.sitemap-stats-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.sitemap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

.stat-item strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 5px;
}

#sitemap-stats-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   SITEMAP TOOLS
   ========================================================================== */

.sitemap-tools-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.sitemap-tools-section .button {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.rocketship-sitemap-settings .form-table th {
    font-weight: 600;
    color: #23282d;
    padding: 15px 10px 15px 0;
    vertical-align: top;
    width: 200px;
}

.rocketship-sitemap-settings .form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.rocketship-sitemap-settings .form-table input[type="text"],
.rocketship-sitemap-settings .form-table textarea,
.rocketship-sitemap-settings .form-table select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.rocketship-sitemap-settings .form-table input[type="text"]:focus,
.rocketship-sitemap-settings .form-table textarea:focus,
.rocketship-sitemap-settings .form-table select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.1);
    outline: none;
}

.rocketship-sitemap-settings .form-table input[type="number"] {
    width: 80px;
}

.rocketship-sitemap-settings .form-table .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* Checkbox and Radio Styling */
.rocketship-sitemap-settings fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.rocketship-sitemap-settings fieldset label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.rocketship-sitemap-settings fieldset label:hover {
    color: #007cba;
}

.rocketship-sitemap-settings fieldset input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Section Headers */
.rocketship-sitemap-settings h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #23282d;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* ==========================================================================
   USAGE INSTRUCTIONS
   ========================================================================== */

.usage-instructions {
    font-size: 14px;
    line-height: 1.6;
}

.usage-instructions h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #23282d;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.usage-instructions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.usage-instructions li {
    margin-bottom: 8px;
    color: #555;
}

.usage-instructions strong {
    color: #007cba;
    font-weight: 600;
}

/* ==========================================================================
   PREVIEW SECTIONS
   ========================================================================== */

.sitemap-preview-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sitemap-preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sitemap-preview-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #23282d;
    margin: 0 0 10px 0;
}

.sitemap-preview-section p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .rocketship-sitemap-settings .rocketship-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-url-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sitemap-url-display code {
        margin-bottom: 10px;
        word-break: break-all;
    }
    
    .sitemap-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rocketship-sitemap-settings .form-table th,
    .rocketship-sitemap-settings .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .rocketship-sitemap-settings .form-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .rocketship-sitemap-settings .rocketship-admin-header {
        padding: 20px;
    }
    
    .rocketship-sitemap-settings .rocketship-admin-header h1 {
        font-size: 1.5rem;
    }
    
    .sitemap-stats {
        grid-template-columns: 1fr;
    }
    
    .sitemap-tools-section .button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

.rocketship-sitemap-settings :focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.rocketship-sitemap-settings .button:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.3);
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   ANIMATION ENHANCEMENTS
   ========================================================================== */

.rocketship-sitemap-settings .rocketship-admin-card {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.rocketship-sitemap-settings .rocketship-admin-card:nth-child(1) { animation-delay: 0.1s; }
.rocketship-sitemap-settings .rocketship-admin-card:nth-child(2) { animation-delay: 0.2s; }
.rocketship-sitemap-settings .rocketship-admin-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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