/**
 * SEO Repair Kit - Image Alt Text Manager Styles
 * Modern UI Design
 */

 :root {
    --srk-primary: #0B1D51;
    --srk-primary-hover: #241180;
    --srk-success: #10B981;
    --srk-success-light: rgba(16, 185, 129, 0.1);
    --srk-warning: #F59E0B;
    --srk-warning-light: rgba(245, 158, 11, 0.1);
    --srk-error: #EF4444;
    --srk-card: #FFFFFF;
    --srk-card-hover: #F9FAFB;
    --srk-border: #E5E7EB;
    --srk-muted: #6B7280;
    --srk-text: #111827;
    --srk-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --srk-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   WRAPPER
   ============================================ */
.srk-alt-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.srk-alt-hero {
    background: linear-gradient(135deg, var(--srk-card) 0%, rgba(107, 78, 255, 0.03) 100%);
    border: 1px solid var(--srk-border);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 20px;
    box-shadow: var(--srk-shadow);
    position: relative;
    overflow: hidden;
}

.srk-alt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.srk-alt-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.srk-alt-hero-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--srk-primary) 0%, var(--srk-primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(107, 78, 255, 0.25);
}

.srk-alt-hero-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #FFFFFF;
    line-height: 1;
}

.srk-alt-hero-text {
    flex: 1;
    min-width: 0;
}

.srk-alt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--srk-text);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.srk-alt-hero-badge:hover {
    background: var(--srk-card-hover);
    border-color: var(--srk-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 78, 255, 0.1);
}

.srk-alt-hero-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--srk-primary);
    line-height: 1;
}

.srk-alt-hero-text h1 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--srk-text);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.srk-alt-hero-text p {
    margin: 0;
    font-size: 14px;
    color: var(--srk-muted);
    line-height: 1.6;
    font-weight: 400;
    max-width: 680px;
}

/* ============================================
   STATS CARDS (Links Manager Style)
   ============================================ */
.srk-alt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.srk-alt-stat-card {
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--srk-shadow);
    position: relative;
    overflow: hidden;
}

.srk-alt-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.2;
    background: linear-gradient(135deg, transparent 0%, rgba(107, 78, 255, 0.25) 100%);
}

.srk-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--srk-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.srk-stat-number {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.srk-stat-subtext {
    margin: 10px 0 0 0;
    color: var(--srk-muted);
    font-size: 13px;
    line-height: 1.4;
}

.srk-stat-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Stat card color variants */
.srk-stat-total::after {
    background: linear-gradient(135deg, transparent 0%, rgba(107, 78, 255, 0.25) 100%);
}

.srk-stat-missing::after {
    background: linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.25) 100%);
}
.srk-stat-missing .srk-stat-number {
    color: var(--srk-warning);
}
.srk-stat-missing .srk-stat-pill {
    background: rgba(245, 158, 11, 0.12);
    color: var(--srk-warning);
}

.srk-stat-complete::after {
    background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.25) 100%);
}
.srk-stat-complete .srk-stat-number {
    color: var(--srk-success);
}
.srk-stat-complete .srk-stat-pill {
    background: rgba(16, 185, 129, 0.12);
    color: var(--srk-success);
}

.srk-stat-score::after {
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.25) 100%);
}
.srk-stat-score .srk-stat-number {
    color: #3B82F6;
}
.srk-stat-score .srk-stat-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

.srk-stat-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.srk-stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ============================================
   MAIN CARD
   ============================================ */
.srk-alt-card {
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 16px;
    box-shadow: var(--srk-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.srk-alt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--srk-border);
    background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
    flex-wrap: wrap;
}

.srk-alt-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srk-alt-card-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #EC4899;
    line-height: 1;
}

.srk-alt-card-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--srk-text);
}

/* Filter Tabs */
.srk-alt-filters {
    display: flex;
    gap: 8px;
}

.srk-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--srk-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.srk-filter-tab:hover {
    border-color: var(--srk-primary);
    color: var(--srk-primary);
}

.srk-filter-tab.active {
    background: var(--srk-primary);
    border-color: var(--srk-primary);
    color: #FFFFFF;
}

.srk-filter-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.srk-filter-count {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.srk-filter-tab.active .srk-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.srk-filter-warning:hover {
    border-color: var(--srk-warning);
    color: var(--srk-warning);
}

.srk-filter-warning.active {
    background: var(--srk-warning);
    border-color: var(--srk-warning);
}

.srk-filter-success:hover {
    border-color: var(--srk-success);
    color: var(--srk-success);
}

.srk-filter-success.active {
    background: var(--srk-success);
    border-color: var(--srk-success);
}

/* Card Body */
.srk-alt-card-body {
    padding: 24px;
    min-height: 300px;
}

/* Empty State */
.srk-alt-empty {
    text-align: center;
    padding: 60px 20px;
}

.srk-alt-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.srk-alt-empty h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--srk-text);
}

.srk-alt-empty p {
    margin: 0;
    color: var(--srk-muted);
}

/* ============================================
   IMAGE GRID
   ============================================ */
.srk-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.srk-alt-item {
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.srk-alt-item:hover {
    box-shadow: var(--srk-shadow-md);
    transform: translateY(-2px);
}

.srk-alt-item.missing-alt {
    border-color: rgba(245, 158, 11, 0.3);
}

.srk-alt-item.has-alt {
    border-color: rgba(16, 185, 129, 0.3);
}

.srk-alt-item-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #F3F4F6;
}

.srk-alt-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.srk-alt-item:hover .srk-alt-item-image img {
    transform: scale(1.05);
}

.srk-alt-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.srk-alt-item:hover .srk-alt-item-overlay {
    opacity: 1;
}

.srk-alt-action {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--srk-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.srk-alt-action:hover {
    background: var(--srk-primary);
    color: #FFFFFF;
}

.srk-alt-action .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.srk-alt-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srk-alt-status.status-ok {
    background: var(--srk-success);
}

.srk-alt-status.status-warning {
    background: var(--srk-warning);
}

.srk-alt-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #FFFFFF;
    line-height: 1;
}

.srk-alt-item-info {
    padding: 14px;
}

.srk-alt-item-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--srk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srk-alt-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--srk-muted);
    margin-bottom: 10px;
}

.srk-alt-item-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.srk-alt-item-text {
    padding-top: 10px;
    border-top: 1px solid var(--srk-border);
}

.srk-alt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--srk-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srk-alt-value {
    display: block;
    font-size: 13px;
    color: var(--srk-text);
    margin-top: 4px;
    line-height: 1.4;
}

.srk-alt-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--srk-warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #B45309;
    text-decoration: none;
    transition: all 0.2s ease;
}

.srk-alt-add-btn:hover {
    background: var(--srk-warning);
    border-color: var(--srk-warning);
    color: #FFFFFF;
}

.srk-alt-add-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* ============================================
   PAGINATION (Redirection Style)
   ============================================ */
.srk-alt-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.srk-alt-pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.srk-alt-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.srk-alt-pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    color: #0b1d51;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.srk-alt-pagination-link:hover:not(.srk-alt-pagination-disabled) {
    background: #0b1d51;
    color: white;
    border-color: #0b1d51;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(11, 29, 81, 0.2);
}

.srk-alt-pagination-link.srk-alt-pagination-disabled {
    background: #f1f3f4;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.srk-alt-pagination-arrow {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.srk-alt-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.srk-alt-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    color: #0b1d51;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.srk-alt-pagination-page:hover:not(.srk-alt-pagination-current) {
    background: #e9ecef;
    border-color: #0b1d51;
    color: #0b1d51;
}

.srk-alt-pagination-page.srk-alt-pagination-current {
    background: #0b1d51;
    color: white;
    border-color: #0b1d51;
    font-weight: 600;
    cursor: default;
}

.srk-alt-pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #6c757d;
    font-size: 14px;
}

.srk-alt-pagination-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srk-alt-pagination-per-page label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.srk-alt-per-page-select {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    color: #0b1d51;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srk-alt-per-page-select:hover {
    border-color: #0b1d51;
}

.srk-alt-per-page-select:focus {
    outline: none;
    border-color: #0b1d51;
    box-shadow: 0 0 0 3px rgba(11, 29, 81, 0.1);
}

/* ============================================
   HELP SECTION
   ============================================ */
.srk-alt-help {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.srk-alt-help-card {
    background: var(--srk-card);
    border: 1px solid var(--srk-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: var(--srk-shadow);
}

.srk-help-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.srk-help-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #EC4899;
    line-height: 1;
}

.srk-help-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--srk-text);
}

.srk-help-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.srk-help-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--srk-muted);
    line-height: 1.5;
}

.srk-help-content li:last-child {
    margin-bottom: 0;
}

.srk-help-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #EC4899;
    border-radius: 50%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .srk-alt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .srk-alt-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .srk-alt-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .srk-alt-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .srk-alt-wrapper {
        padding: 0 16px;
        margin: 16px auto;
    }

    .srk-alt-hero {
        border-radius: 16px;
    }

    .srk-alt-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .srk-alt-hero-icon {
        width: 56px;
        height: 56px;
    }

    .srk-alt-hero-icon .dashicons {
        font-size: 26px;
        width: 26px;
        height: 26px;
    }

    .srk-alt-hero-text h1 {
        font-size: 22px;
    }

    .srk-alt-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .srk-alt-stat-card {
        padding: 16px;
    }

    .srk-stat-number {
        font-size: 22px;
    }

    .srk-alt-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .srk-alt-item-image {
        height: 120px;
    }

    .srk-alt-pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .srk-alt-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .srk-alt-pagination-info {
        text-align: center;
    }

    .srk-alt-pagination-per-page {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .srk-alt-stats {
        grid-template-columns: 1fr;
    }

    .srk-alt-hero-text h1 {
        font-size: 20px;
    }

    .srk-alt-hero-text p {
        font-size: 14px;
    }

    .srk-filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .srk-alt-grid {
        grid-template-columns: 1fr;
    }

    .srk-alt-help-card {
        flex-direction: column;
    }
}

/* ============================================
   LEGACY TABLE STYLES (Keep for backwards compatibility)
   ============================================ */
.image-alt-heading {
    display: none;
}

.srkit-general-custom-table,
.custom-table {
    width: 100%;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
}

.srkit-general-custom-table th,
.custom-table th {
    padding: 1rem;
    border: none;
}

.srkit-general-custom-table th {
    border: none;
    text-align: center;
}

.srkit-general-custom-table th:first-child,
.custom-table th:first-child {
    text-align: center;
}

.srkit-general-custom-table td.center,
.custom-table td.center {
    text-align: center;
}

.srkit-general-custom-table td.left-keyword,
.custom-table td.left-keyword {
    color: #108080;
}

.srkit-general-custom-table thead,
.custom-table thead {
    background-color: #E5EAF8;
    font-weight: bold;
}

.srkit-general-custom-table tbody tr td,
.custom-table tbody tr td {
    background-color: #fefefe;
}

.srkit-general-custom-table tbody tr,
.custom-table tbody tr {
    border-bottom: 0.5px solid #f0f0f1;
}

.srkit-general-custom-table tbody tr:hover,
.custom-table tbody tr:hover {
    background-color: #F0F0F1;
}

.srkit-general-custom-table tbody tr:last-child,
.custom-table tbody tr:last-child {
    border-bottom: none;
}

.srkit-general-custom-table tbody tr td:first-child a,
.custom-table tbody tr td:first-child a {
    font-size: 14px;
    color: #108080;
    text-decoration: none;
    padding-left: 20px;
}

.srkit-general-custom-table .tfoot,
.custom-table .tfoot {
    background-color: #FFFFFF;
    text-align: left !important;
    padding-left: 20px !important;
    padding-bottom: 8px !important;
    border-bottom: 0.5px solid #f0f0f1;
    margin: 10px;
}
