/* SWT SEO Tools - Frontend CSS */
.swt-frontend-tools {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.swt-tools-header {
    text-align: center;
    margin-bottom: 30px;
}

.swt-tools-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.swt-tools-header p {
    color: #666;
    font-size: 16px;
}

.swt-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.swt-tool-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.swt-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.swt-tool-icon {
    text-align: center;
    margin-bottom: 15px;
}

.swt-tool-icon .dashicons {
    font-size: 48px;
    color: #0073aa;
}

.swt-tool-content {
    margin-bottom: 20px;
}

.swt-tool-title {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.swt-tool-description {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.swt-tool-category {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

.swt-tool-actions {
    text-align: center;
}

.swt-run-tool-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.swt-run-tool-btn:hover {
    background: #005a87;
}

/* Modal */
.swt-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swt-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.swt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.swt-modal-header h3 {
    margin: 0;
    color: #333;
}

.swt-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.swt-modal-close:hover {
    color: #333;
}

.swt-modal-body {
    padding: 20px;
}

/* Form Styles */
.swt-form-group {
    margin-bottom: 20px;
}

.swt-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.swt-form-group input,
.swt-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.swt-form-group input:focus,
.swt-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,.2);
}

.swt-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.swt-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.swt-submit-btn:hover {
    background: #005a87;
}

.swt-cancel-btn {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.swt-cancel-btn:hover {
    background: #555;
}

/* Results */
.swt-tool-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.swt-result-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.swt-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.swt-result-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.swt-result-value {
    color: #666;
}

.swt-result-success {
    color: #28a745;
}

.swt-result-warning {
    color: #ffc107;
}

.swt-result-error {
    color: #dc3545;
}

/* Single Tool */
.swt-single-tool {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.swt-single-tool .swt-tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.swt-single-tool .swt-tool-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Membership Signup */
.swt-membership-signup {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.swt-signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.swt-signup-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.swt-signup-header p {
    color: #666;
    font-size: 16px;
}

.swt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.swt-pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.swt-pricing-card:hover {
    transform: translateY(-2px);
}

.swt-pricing-card.swt-featured {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,.2);
}

.swt-pricing-card.swt-featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.swt-pricing-card h3 {
    color: #333;
    margin-bottom: 20px;
}

.swt-price {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
}

.swt-price span {
    font-size: 16px;
    color: #666;
}

.swt-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.swt-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.swt-features li:last-child {
    border-bottom: none;
}

.swt-signup-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.swt-signup-btn:hover {
    background: #005a87;
}

.swt-signup-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.swt-signup-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Access Denied */
.swt-access-denied {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.swt-access-denied h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.swt-access-denied p {
    color: #666;
    margin-bottom: 20px;
}

.swt-access-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.swt-login-btn,
.swt-signup-btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.swt-login-btn {
    background: #0073aa;
    color: white;
}

.swt-login-btn:hover {
    background: #005a87;
    color: white;
}

/* Loading States */
.swt-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.swt-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .swt-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .swt-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .swt-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .swt-form-actions {
        flex-direction: column;
    }
    
    .swt-access-actions {
        flex-direction: column;
    }
}
