/* Quick Page Share Frontend Styles */

.qps-shortcode {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.qps-shortcode h2 {
    color: #333;
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

#qps-frontend-form {
    display: block;
}

.qps-form-group {
    margin-bottom: 20px;
}

.qps-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.qps-form-group input[type="text"],
.qps-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.qps-form-group input[type="text"]:focus,
.qps-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.qps-code-editor {
    min-height: 150px;
    resize: vertical;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

.qps-editors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 10px 16px;
    margin: 5px 5px 5px 0;
    background: #0073aa;
    color: white;
    border: 1px solid #005a87;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button:hover {
    background: #005a87;
    border-color: #003d5c;
    text-decoration: none;
}

.button:active {
    transform: translateY(1px);
}

.button.button-primary {
    background: #0073aa;
}

.button.button-primary:hover {
    background: #005a87;
}

#qps-frontend-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

#qps-frontend-message.notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

#qps-frontend-message.notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

#qps-frontend-result {
    background: #ecf5ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 20px;
    display: none;
}

#qps-frontend-result h3 {
    color: #0073aa;
    margin-top: 0;
}

#qps-result-url {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    width: 100%;
    margin-bottom: 10px;
    background: white;
}

#qps-result-url:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
}

/* Loading state */
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button:disabled:hover {
    background: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qps-shortcode {
        padding: 20px;
    }

    .qps-editors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .qps-code-editor {
        min-height: 120px;
    }

    .button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .qps-shortcode {
        padding: 15px;
        border-radius: 4px;
    }

    .qps-shortcode h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .qps-form-group label {
        font-size: 13px;
    }

    .qps-code-editor {
        min-height: 100px;
        font-size: 12px;
    }

    .button {
        width: 100%;
        padding: 10px;
        margin: 5px 0;
        text-align: center;
    }

    #qps-result-url {
        font-size: 11px;
        margin-bottom: 10px;
    }
}
