/* ==========================================
   Airsports Verification System - Frontend CSS
   Modern, Responsive, Beautiful Design
   ========================================== */

/* Search Container */
.avs-search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.avs-search-header {
    text-align: center;
    margin-bottom: 40px;
}

.avs-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.avs-subtitle {
    font-size: 1.1em;
    color: #666;
    direction: rtl;
}

/* Search Form */
.avs-search-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.avs-input-group {
    margin-bottom: 25px;
}

.avs-label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    direction: rtl;
}

.avs-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.avs-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.avs-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.avs-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.avs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading */
.avs-loading {
    text-align: center;
    padding: 40px;
}

.avs-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Language Tabs */
.avs-language-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.avs-lang-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 500;
}

.avs-lang-tab:hover {
    background: #e8e8e8;
}

.avs-lang-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.avs-lang-tab .flag {
    font-size: 1.3em;
}

/* License Card */
.avs-license-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 2px solid #f0f0f0;
}

.avs-card-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.avs-logo-section {
    flex-shrink: 0;
}

.avs-federation-logo {
    max-width: 100px;
    height: auto;
}

.avs-logo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
}

.avs-title-section {
    flex-grow: 1;
}

.avs-federation-name {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.avs-card-title {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.avs-sport-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
}

.avs-card-body {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.avs-photo-section {
    flex-shrink: 0;
}

.avs-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #f0f0f0;
}

.avs-photo-placeholder {
    width: 180px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 15px;
    border: 3px solid #e0e0e0;
}

.avs-photo-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #999;
}

.avs-info-section {
    flex-grow: 1;
}

.avs-info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    gap: 15px;
}

.avs-info-row:last-child {
    border-bottom: none;
}

.avs-label {
    font-weight: 600;
    color: #555;
    min-width: 150px;
}

.avs-value {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.avs-highlight {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2em;
}

.avs-expiry-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.avs-expiry-status.valid {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0a5f38;
}

.avs-expiry-status.expiring-soon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #6c5218;
}

.avs-expiry-status.expired {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: #fff;
}

.status-icon {
    font-size: 1.3em;
}

.days-count {
    margin-right: 5px;
    font-weight: 700;
}

/* Official Message */
.avs-official-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border-right: 5px solid #667eea;
}

.avs-official-message h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.avs-official-message p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.avs-official-message .signature {
    font-weight: 700;
    color: #667eea;
    margin-top: 20px;
    font-size: 1.05em;
}

/* Share Section */
.avs-share-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.avs-share-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.avs-share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.avs-share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.avs-share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.avs-share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
}

.avs-share-btn.email {
    background: linear-gradient(135deg, #EA4335 0%, #D33122 100%);
}

.avs-share-btn.copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avs-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.avs-share-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Error Message */
.avs-error-message {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.avs-error-message p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .avs-search-container {
        padding: 0 15px;
    }
    
    .avs-title {
        font-size: 1.8em;
    }
    
    .avs-search-form-wrapper {
        padding: 25px;
    }
    
    .avs-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avs-card-body {
        flex-direction: column;
        align-items: center;
    }
    
    .avs-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .avs-label {
        min-width: auto;
    }
    
    .avs-language-tabs {
        gap: 8px;
    }
    
    .avs-lang-tab {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .avs-share-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .avs-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] .avs-card-body {
    direction: rtl;
}

[dir="rtl"] .avs-info-row {
    direction: rtl;
}

[dir="rtl"] .avs-official-message {
    border-right: none;
    border-left: 5px solid #667eea;
}

/* Print Styles */
@media print {
    .avs-language-tabs,
    .avs-share-section,
    .avs-search-form-wrapper {
        display: none !important;
    }
    
    .avs-license-card {
        box-shadow: none;
        border: 2px solid #000;
    }
}
