/**
 * Frontend Styles for Backlink Indexer
 */

.backlink-indexer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.backlink-indexer-header {
    text-align: center;
    margin-bottom: 30px;
}

.backlink-indexer-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.backlink-indexer-header h2 {
    font-size: 1.2em;
    color: #666;
    font-weight: normal;
}

.backlink-indexer-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.backlink-indexer-description strong {
    color: #d32f2f;
}

.backlink-indexer-errors {
    margin-bottom: 20px;
}

.backlink-indexer-errors .alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.backlink-indexer-errors .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.backlink-indexer-form {
    margin-bottom: 30px;
}

.backlink-indexer-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.backlink-indexer-loading {
    position: absolute;
    left: -50px;
    padding: 10px;
}

.backlink-indexer-input-group input[type="url"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.backlink-indexer-input-group input[type="url"]:focus {
    outline: none;
    border-color: #0073aa;
}

.backlink-indexer-submit-btn {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.backlink-indexer-submit-btn:hover {
    background-color: #005a87;
}

.backlink-indexer-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.backlink-indexer-recaptcha {
    margin-bottom: 20px;
    text-align: center;
}

.backlink-indexer-options {
    margin-top: 20px;
}

.backlink-indexer-options-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.backlink-indexer-option {
    display: inline-block;
    width: 48%;
    margin: 1%;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    vertical-align: top;
}

.backlink-indexer-option:hover {
    border-color: #0073aa;
}

.backlink-indexer-option.selected {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.backlink-indexer-option-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.backlink-indexer-option-title .red {
    color: #d32f2f;
    font-weight: bold;
}

.backlink-indexer-option-details {
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.backlink-indexer-option input[type="radio"] {
    margin-top: 10px;
}

.backlink-indexer-results {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.backlink-indexer-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #ffc107;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.backlink-indexer-warning strong {
    color: #d32f2f;
}

.backlink-indexer-status {
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    margin: 20px 0;
}

.backlink-indexer-stats {
    text-align: center;
    margin: 20px 0;
}

.backlink-indexer-stats .badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin: 0 5px;
}

.backlink-indexer-stats .badge-success {
    background-color: #28a745;
    color: white;
}

.backlink-indexer-stats .badge-error {
    background-color: #dc3545;
    color: white;
}

.backlink-indexer-progress {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.backlink-indexer-progress-bar {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.backlink-indexer-results-list {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
    word-wrap: break-word;
}

.backlink-indexer-results-list .alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.backlink-indexer-results-list .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.backlink-indexer-results-list .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.backlink-indexer-results-list .alert a {
    color: inherit;
    text-decoration: none;
}

.backlink-indexer-results-list .alert a:hover {
    text-decoration: underline;
}

.backlink-indexer-results-list .pull-right {
    float: right;
    margin-left: 10px;
}

.backlink-indexer-results-list .btn {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.backlink-indexer-results-list .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.backlink-indexer-results-list .btn-success {
    background-color: #28a745;
    color: white;
}

.backlink-indexer-results-list .btn-danger {
    background-color: #dc3545;
    color: white;
}

.backlink-indexer-results-list .btn:hover {
    opacity: 0.8;
}

.verified-icon {
    color: #28a745;
    font-weight: bold;
    margin-left: 5px;
}

.backlink-result-success {
    border-left: 4px solid #28a745;
}

.backlink-result-error {
    border-left: 4px solid #dc3545;
}

/* Processing animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.backlink-processing {
    animation: pulse 2s infinite;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.backlink-indexer-loading img {
    animation: spin 1s linear infinite;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.backlink-result-success .verified-icon {
    animation: checkmark 0.5s ease-out;
}

.backlink-export-btn {
    padding: 10px 20px;
    margin: 5px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.backlink-export-btn:hover {
    background-color: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .backlink-indexer-option {
        width: 100%;
        margin: 10px 0;
    }
    
    .backlink-indexer-header h1 {
        font-size: 1.8em;
    }
    
    .backlink-indexer-status {
        font-size: 24px;
    }
}

