/* Payment Channels WP Shortcode Styles */

.pcwp-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search styles */
.pcwp-search-container {
    margin-bottom: 20px;
    width: 100%;
}

.pcwp-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 16px 16px;
    padding-left: 40px;
}

/* Filter select styles */
.pcwp-filter-selects {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pcwp-filter-select {
    flex: 1;
    margin-right: 15px;
}

.pcwp-filter-select:last-child {
    margin-right: 0;
}

.pcwp-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    height: auto;
    min-height: 45px;
    color: #333;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    text-indent: 0.01px;
    text-overflow: '';
    box-sizing: border-box;
}

.pcwp-select option {
    font-size: 14px;
    padding: 5px;
}

/* Tab styles */
.pcwp-tabs {
    margin-bottom: 30px;
}

.pcwp-tab-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #eee;
}

.pcwp-tab-item {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.pcwp-tab-item:hover {
    color: #0073aa;
}

.pcwp-tab-item.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Company grid styles */
.pcwp-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    min-height: 200px;
}

/* Loading state */
.pcwp-loading {
    opacity: 0.6;
}

.pcwp-loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    animation: pcwp-spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes pcwp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Company link and card styles */
.pcwp-company-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.pcwp-company-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.pcwp-company-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
}

.pcwp-company-link:hover .pcwp-company-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pcwp-company-logo {
    text-align: center;
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcwp-company-logo img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.pcwp-placeholder-logo {
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pcwp-company-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.pcwp-company-methods {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.pcwp-company-description {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.pcwp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pcwp-filter-selects {
        flex-direction: column;
    }
    
    .pcwp-filter-select {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .pcwp-companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .pcwp-companies-grid {
        grid-template-columns: 1fr;
    }
    
    .pcwp-tab-menu {
        flex-wrap: wrap;
    }
    
    .pcwp-tab-item {
        flex: 1;
        text-align: center;
        font-size: 14px;
        padding: 10px;
    }
} 