/* Digital Diagnosis Marketing Contact Card Styles */
/* Mobile-first responsive design */

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Contact Card */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.company-logo h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Employee Photo */
.employee-photo {
    text-align: center;
    padding: 30px 20px 0;
}

.employee-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Employee Info */
.employee-info {
    text-align: center;
    padding: 30px 20px 20px;
}

.employee-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.employee-title {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.company-name {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Details */
.contact-details {
    padding: 0 20px 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Action Buttons */
.action-buttons {
    padding: 20px;
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Card Footer */
.card-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* Employee List (Directory) */
.header {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.header p {
    font-size: 18px;
    opacity: 0.9;
}

.employee-list {
    display: grid;
    gap: 20px;
}

.employee-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employee-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.employee-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.employee-item p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* QR Code Generator Styles */
.qr-generator {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.qr-grid {
    display: grid;
    gap: 25px;
    margin-top: 25px;
}

.qr-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
}

.qr-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.qr-item p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.qr-code {
    margin: 20px auto;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    display: inline-block;
}

.qr-code canvas {
    display: block;
}

.qr-url {
    font-size: 12px;
    color: var(--text-light);
    word-break: break-all;
    margin: 10px 0;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
}

.btn-secondary {
    display: inline-block;
    background: var(--text-light);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    margin: 5px;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

/* Responsive Design */
@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }
    
    .employee-name {
        font-size: 32px;
    }
    
    .employee-title {
        font-size: 20px;
    }
    
    .employee-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }
    
    .qr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    body {
        background: var(--white);
        padding: 0;
    }
    
    .contact-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .btn-primary {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.5s ease;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Error State */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin: 20px;
    text-align: center;
}
