/**
 * Main Page Specific Styles
 * 
 * @package scry_ms_Search
 * @since 1.0.0
 */

.scrywp-admin-overview {
    max-width: 1200px;
    margin-top: 20px;
}

.scrywp-admin-overview-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.scrywp-admin-overview-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.scrywp-admin-overview-header .description {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@keyframes scrywp-admin-overview-cta-pulse {
    0%,
    100% {
        box-shadow:
            0 2px 10px rgba(34, 113, 177, 0.12),
            0 1px 3px rgba(0, 0, 0, 0.05);
        transform: scale(1);
        border-color: #c3d9ed;
        border-left-color: #2271b1;
    }

    50% {
        box-shadow:
            0 12px 44px rgba(34, 113, 177, 0.42),
            0 0 0 3px rgba(34, 113, 177, 0.22),
            0 0 40px rgba(56, 148, 220, 0.38),
            0 4px 14px rgba(0, 0, 0, 0.08);
        transform: scale(1.014);
        border-color: #7eb7e8;
        border-left-color: #135e96;
    }
}

.scrywp-admin-overview-cta {
    display: block;
    margin: 0 0 36px;
    padding: 0;
    background: linear-gradient(135deg, #f0f6fc 0%, #fff 48%, #f6f7f7 100%);
    border: 1px solid #c3d9ed;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    box-shadow:
        0 2px 10px rgba(34, 113, 177, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #1d2327;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    animation: scrywp-admin-overview-cta-pulse 2.6s ease-in-out infinite;
}

.scrywp-admin-overview-cta:hover,
.scrywp-admin-overview-cta:focus {
    animation: none;
    border-color: #2271b1;
    border-left-color: #135e96;
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
    color: #1d2327;
    transform: translateY(-1px);
}

.scrywp-admin-overview-cta:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.scrywp-admin-overview-cta-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
}

.scrywp-admin-overview-cta-logo {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.scrywp-admin-overview-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.scrywp-admin-overview-cta-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2271b1;
}

.scrywp-admin-overview-cta-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d2327;
}

.scrywp-admin-overview-cta-desc {
    font-size: 16px;
    line-height: 1.55;
    color: #50575e;
    max-width: 42em;
}

.scrywp-admin-overview-cta-button {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    min-height: 46px;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.scrywp-admin-overview-cta-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin: 0;
}

@media (max-width: 782px) {
    .scrywp-admin-overview-cta-inner {
        flex-wrap: wrap;
        padding: 24px 22px;
        gap: 20px;
    }

    .scrywp-admin-overview-cta-logo {
        width: 88px;
        height: 88px;
    }

    .scrywp-admin-overview-cta-title {
        font-size: 19px;
    }

    .scrywp-admin-overview-cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scrywp-admin-overview-cta {
        animation: none;
    }
}

.scrywp-admin-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scrywp-admin-page-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.scrywp-admin-page-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scrywp-admin-page-card-icon {
    margin-bottom: 15px;
}

.scrywp-admin-page-card-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.scrywp-admin-page-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scrywp-admin-page-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.scrywp-admin-page-card-title a {
    text-decoration: none;
    color: #1d2327;
}

.scrywp-admin-page-card-title a:hover {
    color: #2271b1;
}

.scrywp-admin-page-card-description {
    margin: 0 0 15px 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.scrywp-admin-page-card-action {
    margin-top: auto;
}

.scrywp-admin-page-card-action .button {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 782px) {
    .scrywp-admin-pages-grid {
        grid-template-columns: 1fr;
    }
}