/* SEO Tools - Main Stylesheet */

/* ===== Reset & Base ===== */
.heading-typ4-dk h1 {
    display: none;
}
.privacy_con {
    width: 100%;
}
.seo-tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
}

.seo-tool-container * {
    box-sizing: border-box;
}

/* ===== Tool Header ===== */
.seo-tool-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.seo-tool-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.seo-tool-header p {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* ===== Form Elements ===== */
.seo-tool-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.seo-tool-form-row {
    margin-bottom: 15px;
}

.seo-tool-form-row:last-child {
    margin-bottom: 0;
}

.seo-tool-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.seo-tool-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.seo-tool-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.seo-tool-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.seo-tool-textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.seo-tool-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
}

.seo-tool-select:focus {
    outline: none;
    border-color: #4361ee;
}

/* ===== Inline Form ===== */
.seo-tool-inline-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.seo-tool-inline-form .seo-tool-input {
    flex: 1;
}

/* ===== Buttons ===== */
.seo-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
}

.seo-tool-btn:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.seo-tool-btn:active {
    transform: translateY(0);
}

.seo-tool-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.seo-tool-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.seo-tool-btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
}

.seo-tool-btn-success {
    background: linear-gradient(135deg, #2ec4b6, #1a936f);
}

.seo-tool-btn-success:hover {
    background: linear-gradient(135deg, #1a936f, #2ec4b6);
}

.seo-tool-btn-danger {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.seo-tool-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
}

/* ===== Loading Spinner ===== */
.seo-tool-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.seo-tool-loading.active {
    display: block;
}

.seo-tool-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #4361ee;
    border-radius: 50%;
    animation: seo-spin 0.8s linear infinite;
}

@keyframes seo-spin {
    to {
        transform: rotate(360deg);
    }
}

.seo-tool-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* ===== Results ===== */
.seo-tool-results {
    display: none;
    margin-top: 25px;
}

.seo-tool-results.active {
    display: block;
}

.seo-tool-result-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-tool-result-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.seo-tool-result-card h4 {
    font-size: 15px;
    color: #444;
    margin: 15px 0 8px 0;
}

/* ===== Score Meters ===== */
.seo-tool-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.seo-tool-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.seo-tool-score-circle.score-good {
    background: linear-gradient(135deg, #2ec4b6, #1a936f);
}

.seo-tool-score-circle.score-average {
    background: linear-gradient(135deg, #f9c74f, #f4845f);
}

.seo-tool-score-circle.score-poor {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.seo-tool-score-details {
    flex: 1;
}

.seo-tool-score-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.seo-tool-score-desc {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ===== Progress Bar ===== */
.seo-tool-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.seo-tool-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.seo-tool-progress-bar.good {
    background: #2ec4b6;
}

.seo-tool-progress-bar.average {
    background: #f9c74f;
}

.seo-tool-progress-bar.poor {
    background: #e63946;
}

/* ===== Tables ===== */
.seo-tool-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.seo-tool-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #dee2e6;
}

.seo-tool-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.seo-tool-table tr:hover td {
    background: #f8f9fa;
}

.seo-tool-table .status-ok {
    color: #2ec4b6;
    font-weight: 600;
}

.seo-tool-table .status-error {
    color: #e63946;
    font-weight: 600;
}

.seo-tool-table .status-warning {
    color: #f9c74f;
    font-weight: 600;
}

.seo-tool-table .status-redirect {
    color: #4361ee;
    font-weight: 600;
}

/* ===== Tags / Badges ===== */
.seo-tool-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.seo-tool-badge-success {
    background: #d4edda;
    color: #155724;
}

.seo-tool-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.seo-tool-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.seo-tool-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== Code Block ===== */
.seo-tool-code {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin: 15px 0;
    position: relative;
}

.seo-tool-code pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.seo-tool-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.seo-tool-code-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Alert / Notice ===== */
.seo-tool-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.seo-tool-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.seo-tool-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.seo-tool-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.seo-tool-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Stat Grid ===== */
.seo-tool-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.seo-tool-stat {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.seo-tool-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #4361ee;
    line-height: 1;
}

.seo-tool-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Multi-URL Input ===== */
.seo-tool-multi-input {
    position: relative;
}

.seo-tool-multi-input textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
}

.seo-tool-multi-input textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.seo-tool-multi-input .hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* ===== Checkbox / Radio Groups ===== */
.seo-tool-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.seo-tool-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
}

/* ===== Tabs ===== */
.seo-tool-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.seo-tool-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.seo-tool-tab:hover {
    color: #4361ee;
}

.seo-tool-tab.active {
    color: #4361ee;
    border-bottom-color: #4361ee;
}

.seo-tool-tab-content {
    display: none;
}

.seo-tool-tab-content.active {
    display: block;
}

/* ===== Download Button ===== */
.seo-tool-download-area {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
}

/* ===== Screenshot Preview ===== */
.seo-tool-screenshot {
    text-align: center;
    margin: 20px 0;
}

.seo-tool-screenshot img {
    max-width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== IP Info ===== */
.seo-tool-ip-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 12px;
    color: #fff;
    margin: 20px 0;
}

.seo-tool-ip-display .ip-address {
    font-size: 36px;
    font-weight: 700;
    font-family: monospace;
    margin: 10px 0;
}

.seo-tool-ip-display .ip-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Generator Preview ===== */
.seo-tool-preview {
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.seo-tool-preview h4 {
    margin: 0 0 10px 0;
    color: #444;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .seo-tool-container {
        padding: 15px;
    }

    .seo-tool-header h2 {
        font-size: 22px;
    }

    .seo-tool-inline-form {
        flex-direction: column;
    }

    .seo-tool-btn {
        width: 100%;
    }

    .seo-tool-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-tool-score {
        flex-direction: column;
        text-align: center;
    }

    .seo-tool-tabs {
        flex-wrap: wrap;
    }

    .seo-tool-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .seo-tool-stats {
        grid-template-columns: 1fr;
    }

    .seo-tool-ip-display .ip-address {
        font-size: 24px;
    }
}