/**
 * Simple LaunchPad Styles
 *
 * @package Simple_LaunchPad
 * @version 1.0.0
 */

/* Accessibility: Skip link for screen readers and keyboard users */
.screen-reader-shortcut {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.screen-reader-shortcut:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    height: auto;
    width: auto;
    clip: auto;
    clip-path: none;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simple-launchpad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.launchpad-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3338;
    transition: all 0.2s ease;
    min-height: 120px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.launchpad-button:hover {
    background: #f6f7f7;
    border-color: #2271b1;
    color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.launchpad-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #2271b1;
}

.launchpad-button .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.launchpad-button .button-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .simple-launchpad {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .launchpad-button {
        padding: 15px 10px;
        min-height: 100px;
    }

    .launchpad-button .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }

    .launchpad-button .button-label {
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    .simple-launchpad {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode support (WordPress 5.7+) */
@media (prefers-color-scheme: dark) {
    .simple-launchpad:not(.force-light) .launchpad-button {
        background: #1d2327;
        border-color: #3c434a;
        color: #f0f0f1;
    }

    .simple-launchpad:not(.force-light) .launchpad-button:hover {
        background: #2c3338;
        border-color: #72aee6;
        color: #72aee6;
    }
}

/* Force dark mode override */
.simple-launchpad.force-dark .launchpad-button {
    background: #1d2327;
    border-color: #3c434a;
    color: #f0f0f1;
}

.simple-launchpad.force-dark .launchpad-button:hover {
    background: #2c3338;
    border-color: #72aee6;
    color: #72aee6;
}

/* Force light mode override */
.simple-launchpad.force-light .launchpad-button {
    background: #fff;
    border-color: #dcdcde;
    color: #2c3338;
}

.simple-launchpad.force-light .launchpad-button:hover {
    background: #f6f7f7;
    border-color: #2271b1;
    color: #2271b1;
}
