/*
Theme Name: CDR King Official
Theme URI: https://jhoinsimdata.com
Author: CDR King Team
Author URI: https://jhoinsimdata.com
Description: Yeh theme CDR King website ke liye khud banaya gaya hai. Isme SIM data, CNIC, Family Tree aur CDR services ke sections hain.
Version: 1.0.0
License: Educational Purpose Only
Text Domain: cdrking
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments

License se:
Yeh theme sirf educational purposes ke liye hai. Iska kisi bhi illegal kaam ke liye istemal karna mana hai.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0a1928;
    --secondary: #1a2f3f;
    --accent: #00a8ff;
    --gold: #ffd700;
    --success: #00cc66;
    --danger: #ff4444;
    --warning: #ffaa00;
}

body {
    background: linear-gradient(135deg, #0a1928 0%, #1a2f3f 100%);
    color: #fff;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
    padding: 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(0, 168, 255, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Arabic Bismillah Section */
.bismillah {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,168,255,0.1), rgba(255,215,0,0.1));
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0,168,255,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.5); }
}

.arabic-text {
    font-family: 'Traditional Arabic', 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.urdu-text {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, var(--accent), #0066cc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.4);
}

.format-hint {
    text-align: center;
    margin-top: 1rem;
    color: #888;
    font-size: 0.8rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 1.5rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Result Cards */
.result-card {
    display: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: slideIn 0.5s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.not-found-card {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.2));
    border: 2px solid var(--danger);
}

.found-card {
    background: linear-gradient(135deg, rgba(0, 204, 102, 0.1), rgba(0, 204, 102, 0.2));
    border: 2px solid var(--success);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-header i {
    font-size: 2rem;
}

.card-header h2 {
    font-size: 1.3rem;
}

/* Data Display Box */
.data-display-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.2rem 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
}

.data-display-box h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.data-display-box p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.data-display-box strong {
    color: var(--accent);
    display: inline-block;
    min-width: 100px;
    margin-right: 0.5rem;
}

.record-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
}

.record-item:last-child {
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.service-item h3 {
    margin-bottom: 0.3rem;
    color: var(--gold);
    font-size: 1rem;
}

.service-item p {
    font-size: 0.85rem;
    color: #ccc;
}

.whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.whatsapp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-info {
    text-align: center;
    font-size: 1rem;
    line-height: 2;
}

.contact-info i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.license-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid var(--danger);
}

.license-box p {
    color: #ff8888;
    font-weight: bold;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .arabic-text {
        font-size: 1.3rem;
    }

    .section {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.1rem;
    }
    
    .data-display-box strong {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .search-input, .search-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .data-display-box {
        padding: 1rem;
    }
    
    .data-display-box p {
        font-size: 0.9rem;
    }
    
    .data-display-box strong {
        min-width: 70px;
    }
}