/* PsyNamic Network Directory - Main Styles */

/* Reset and Base */
.psynamic-network-directory {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.psynamic-top-menu {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.psynamic-top-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.psynamic-top-menu a {
    color: white;
    text-decoration: none;
}

.psynamic-network-logo h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 700;
}

.psynamic-network-logo .tagline {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.95;
}

.psynamic-mission {
    max-width: 800px;
    margin: 20px auto;
    font-size: 16px;
    opacity: 0.95;
}

.psynamic-network-nav {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
}

.psynamic-network-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.psynamic-network-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.psynamic-network-nav a:hover,
.psynamic-network-nav li.active a {
    background: rgba(255,255,255,0.2);
}

/* Search Section */
.psynamic-search-section {
    background: #f8f9fa;
    padding: 30px 40px;
    border-bottom: 1px solid #dee2e6;
}

.psynamic-search-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

#psynamic-search {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.psynamic-filter-toggle {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.psynamic-filter-toggle:hover {
    background: #5568d3;
}

/* Filters */
.psynamic-filters {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.psynamic-filters.active {
    display: block;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.filter-group select[multiple] {
    height: 120px;
}

.apply-filters,
.clear-filters {
    padding: 12px 30px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.apply-filters {
    background: #667eea;
    color: white;
}

.clear-filters {
    background: #6c757d;
    color: white;
}

/* Content Wrapper */
.psynamic-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Provider Grid */
.psynamic-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Provider Card */
.provider-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.provider-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    overflow: hidden;
}

.provider-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar,
.default-avatar-large {
    width: 100%;
    height: 100%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.default-avatar.avatar-male {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><circle cx="12" cy="7" r="4"/><path d="M12 14c-5 0-8 3-8 6v1h16v-1c0-3-3-6-8-6z"/></svg>');
    background-color: #e3e6ea;
}

.default-avatar.avatar-female {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><circle cx="12" cy="7" r="4"/><path d="M12 14c-5 0-8 3-8 6v1h16v-1c0-3-3-6-8-6z"/></svg>');
    background-color: #f5e6f0;
}

.provider-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.psynamic-badge {
    background: #667eea;
}

.independent-badge {
    background: #6c757d;
}

.provider-card-content {
    padding: 20px;
}

.provider-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.provider-credentials {
    margin: 0 0 10px 0;
    color: #667eea;
    font-weight: 500;
}

.provider-location,
.provider-availability {
    margin: 5px 0;
    font-size: 14px;
    color: #6c757d;
}

.view-profile-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.view-profile-btn:hover {
    background: #5568d3;
}

/* Sidebar */
.psynamic-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
}

.sidebar-button {
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.match-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.insurance-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sidebar-button strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.sidebar-button span {
    font-size: 14px;
    opacity: 0.95;
}

.sidebar-link {
    display: block;
    text-align: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: #667eea;
    color: white;
}

/* Pagination */
.psynamic-pagination {
    margin-top: 40px;
    text-align: center;
}

.psynamic-pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #667eea;
}

.psynamic-pagination a:hover,
.psynamic-pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Provider Profile Page */
.psynamic-provider-profile .provider-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.provider-image-wrapper {
    position: relative;
}

.provider-image-wrapper img,
.default-avatar-large {
    width: 100%;
    border-radius: 10px;
}

.default-avatar-large {
    height: 300px;
}

.provider-header-info h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #2c3e50;
}

.provider-header-info .credentials {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.provider-meta span {
    display: inline-block;
    margin-right: 20px;
    color: #6c757d;
}

.provider-bio,
.provider-details-grid {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.provider-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.detail-item h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

.detail-item p {
    margin: 0;
    color: #495057;
}

.provider-cta-section {
    text-align: center;
    padding: 30px;
}

.primary-cta-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 15px;
}

.primary-cta-button:hover {
    transform: scale(1.05);
}

.secondary-cta-button {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-cta-button:hover {
    background: #667eea;
    color: white;
}

/* Modal Styles */
.psynamic-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.psynamic-modal.active {
    display: block;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    color: #2c3e50;
}

.modal-intro,
.modal-disclaimer {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-disclaimer {
    background: #fff3cd;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    font-size: 13px;
    color: #856404;
    margin: 20px 0;
}

/* Form Styles */
.psynamic-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.radio-group label {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-group label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.field-description {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #5568d3;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* No Results */
.psynamic-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .psynamic-provider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .psynamic-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .psynamic-sidebar {
        position: static;
    }
    
    .provider-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .psynamic-provider-grid {
        grid-template-columns: 1fr;
    }
    
    .psynamic-provider-profile .provider-header {
        grid-template-columns: 1fr;
    }
    
    .psynamic-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .psynamic-network-logo h1 {
        font-size: 32px;
    }
}
