/* SIM Owner Checker WordPress Plugin Styles */

.soc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.soc-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.soc-header-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.soc-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.soc-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search Section */
.soc-search-section {
    margin-bottom: 40px;
}

.soc-search-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

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

.soc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.soc-form-group select,
.soc-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.soc-form-group select:focus,
.soc-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.soc-search-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soc-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.soc-search-btn i {
    margin-right: 8px;
}

/* Loading Styles */
.soc-loading {
    text-align: center;
    color: #667eea;
    margin: 40px 0;
}

.soc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: soc-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes soc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.soc-results-section {
    margin-bottom: 40px;
}

.soc-results-section h3 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.soc-results-section h3 i {
    margin-right: 10px;
    color: #667eea;
}

.soc-results-container {
    display: grid;
    gap: 20px;
}

.soc-result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soc-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.soc-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.soc-result-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.soc-result-header h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
    flex-grow: 1;
    margin-left: 12px;
}

.soc-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.soc-detail-item {
    display: flex;
    flex-direction: column;
}

.soc-detail-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soc-detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.soc-detail-value.mobile {
    color: #28a745;
    font-weight: 600;
}

.soc-detail-value.cnic {
    color: #dc3545;
    font-weight: 600;
}

.soc-detail-value.name {
    color: #667eea;
    font-weight: 600;
}

/* Copy buttons */
.soc-copy-all-container {
    text-align: center;
    margin-bottom: 30px;
}

.soc-copy-all-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.soc-copy-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.soc-copy-all-btn i {
    margin-right: 8px;
}

.soc-copy-single-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.soc-copy-single-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.4);
}

/* Error Section */
.soc-error-section {
    margin-bottom: 40px;
}

.soc-error-card {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.soc-error-card i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 15px;
}

.soc-error-card h4 {
    color: #e53e3e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.soc-error-card p {
    color: #c53030;
    font-size: 1rem;
}

/* Copy notification */
.soc-copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    animation: socSlideInRight 0.3s ease, socSlideOutRight 0.3s ease 2.7s forwards;
}

.soc-copy-notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.soc-copy-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

@keyframes socSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes socSlideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* No results message */
.soc-no-results {
    text-align: center;
    color: #666;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.soc-no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
    color: #667eea;
}

.soc-no-results h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.soc-no-results p {
    opacity: 0.8;
}

/* Animation for results */
.soc-result-card {
    animation: socFadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.soc-result-card:nth-child(1) { animation-delay: 0.1s; }
.soc-result-card:nth-child(2) { animation-delay: 0.2s; }
.soc-result-card:nth-child(3) { animation-delay: 0.3s; }
.soc-result-card:nth-child(4) { animation-delay: 0.4s; }
.soc-result-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes socFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .soc-container {
        padding: 15px;
    }
    
    .soc-header h2 {
        font-size: 2rem;
    }
    
    .soc-header-content i {
        font-size: 2.5rem;
    }
    
    .soc-search-card {
        padding: 20px;
    }
    
    .soc-result-details {
        grid-template-columns: 1fr;
    }
    
    .soc-result-card {
        padding: 20px;
    }
    
    .soc-copy-all-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .soc-copy-single-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .soc-copy-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .soc-header h2 {
        font-size: 1.8rem;
    }
    
    .soc-search-card {
        padding: 15px;
    }
    
    .soc-form-group select,
    .soc-form-group input {
        padding: 10px 12px;
    }
    
    .soc-search-btn {
        padding: 12px 15px;
    }
}
