/* SEO Machine Playground Styles */
.seo-machine-playground {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sm-playground-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background-image: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
}

.sm-playground-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
}

.sm-playground-tagline {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
    opacity: 0.95;
}

/* Limit Notice */
.sm-playground-limit-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.sm-playground-limit-notice strong {
    color: #856404;
    font-size: 16px;
}

.sm-playground-limit-notice p {
    margin: 5px 0 0 0;
    color: #856404;
}

/* Cards */
.sm-playground-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sm-playground-card {
    /* background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer; */
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sm-playground-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.sm-playground-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sm-playground-card-icon {
    font-size: 32px;
    margin-bottom: 15px;
    background-image: linear-gradient(90deg, #c9ff9a 0%, #98ff3f 100%);
    border-radius: 46px;
    padding: 10px 15px;
}

.sm-playground-card-title {
    font-weight: 700;
    font-size: 18px;
    color: #171543;
    margin-bottom: 8px;
    font-family: "Poppins", Sans-serif;
}

.sm-playground-card-desc {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #1E1E1EC2;
    font-family: "Poppins", Sans-serif;
}

/* Tabs */
.sm-playground-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 0;
}

.sm-playground-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    transition: all 0.2s ease;
}

.sm-playground-tab:hover {
    background: #f8f9fa;
    color: #19547b;
}

.sm-playground-tab.active {
    color: #fff;
    background-image: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
}

.sm-playground-tab-content {
    display: none;
}

.sm-playground-tab-content.active {
    display: block;
}

/* Panels */
.sm-playground-panel {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sm-playground-panel h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.sm-playground-panel p {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Forms */
.sm-playground-form {
    margin-bottom: 25px;
}

.sm-playground-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.sm-playground-input-text,
.sm-playground-input-textarea,
.sm-playground-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.sm-playground-input-text:focus,
.sm-playground-input-textarea:focus,
.sm-playground-select:focus {
    outline: none;
    border-color: #19547b;
    box-shadow: 0 0 0 3px rgba(25, 84, 123, 0.1);
}

.sm-playground-input-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.sm-playground-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.sm-playground-btn-primary {
    color: #fff;
    background-image: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
}

.sm-playground-btn-primary:hover {
    transform: translateY(-1px);
    background-image: linear-gradient(180deg, #19547b 0%, #ffd89b 100%);
    color: #fff;
}

.sm-playground-btn-secondary {
    background: #f8f9fa;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.sm-playground-btn-secondary:hover {
    background: #e8eaed;
}

.sm-playground-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Result Areas */
.sm-playground-result-area {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #19547b;
    display: none;
}

.sm-playground-result-area.has-content {
    display: block;
}

.sm-playground-result-area pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: inherit;
    line-height: 1.6;
}

/* Loading States */
.sm-playground-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #19547b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Notices */
.sm-playground-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sm-playground-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.sm-playground-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sm-playground-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.sm-playground-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .seo-machine-playground {
        padding: 15px;
    }

    .sm-playground-cards {
        grid-template-columns: 1fr;
    }

    .sm-playground-tabs {
        flex-direction: column;
    }

    .sm-playground-header h1 {
        font-size: 2em;
    }
}

/* hCaptcha Modal Styles */
.sm-hcaptcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 21, 67, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sm-hcaptcha-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sm-hcaptcha-header {
    background: linear-gradient(135deg, #c9ff9a 0%, #98ff3f 100%);
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.sm-hcaptcha-header-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sm-hcaptcha-header h3 {
    margin: 0;
    color: #171543;
    font-size: 24px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

.sm-hcaptcha-body {
    padding: 30px;
}

.sm-hcaptcha-close {
    position: absolute;
    top: 23px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    color: #171543;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sm-hcaptcha-close:hover {
    background: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sm-hcaptcha-limit-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.sm-hcaptcha-limit-notice strong {
    color: #856404;
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
    font-family: "Poppins", sans-serif;
}

.sm-hcaptcha-limit-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    opacity: 0.9;
}

.sm-hcaptcha-description {
    text-align: center;
    margin: 0 0 25px 0;
    color: #5f6368;
    font-size: 15px;
    line-height: 1.5;
}

.sm-hcaptcha-captcha-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px;
}

.sm-hcaptcha-content .h-captcha {
    display: flex;
    justify-content: center;
}

.sm-hcaptcha-placeholder {
    text-align: center;
}

.sm-hcaptcha-placeholder p {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
}

.sm-hcaptcha-placeholder strong {
    color: #495057;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.sm-hcaptcha-placeholder small {
    color: #6c757d;
    font-size: 13px;
}

.sm-hcaptcha-placeholder .sm-playground-btn {
    margin-top: 15px;
}

@media (max-width: 576px) {
    .sm-hcaptcha-content {
        width: 95%;
        border-radius: 16px;
    }

    .sm-hcaptcha-header {
        padding: 25px 20px 20px;
    }

    .sm-hcaptcha-header h3 {
        font-size: 20px;
    }

    .sm-hcaptcha-body {
        padding: 20px;
    }

    .sm-hcaptcha-header-icon {
        font-size: 30px;
    }
}