/* Public Styles for Watch Strap Compatibility Checker */

.wscc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.wscc-header {
    text-align: center;
    margin-bottom: 40px;
}

.wscc-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.wscc-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Selector Wrapper */
.wscc-selector-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Search Box */
.wscc-search-box {
    position: relative;
    margin-bottom: 20px;
}

.wscc-search-field {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wscc-search-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wscc-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

/* Dropdown Selector */
.wscc-selector {
    position: relative;
}

.wscc-watch-dropdown {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.wscc-watch-dropdown:hover {
    border-color: #007bff;
}

.wscc-watch-dropdown:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

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

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

.wscc-loading p {
    color: #666;
    font-size: 16px;
}

/* Results */
.wscc-results {
    margin-top: 40px;
}

.wscc-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.wscc-results-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Straps Grid */
.wscc-straps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card Styles */
.wscc-strap-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Modern Style (default) */
.wscc-card-style-modern .wscc-strap-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wscc-card-style-modern .wscc-strap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Minimal Style */
.wscc-card-style-minimal .wscc-strap-card {
    border: 1px solid #e0e0e0;
}

.wscc-card-style-minimal .wscc-strap-card:hover {
    border-color: #007bff;
}

/* Bordered Style */
.wscc-card-style-bordered .wscc-strap-card {
    border: 2px solid #333;
}

.wscc-card-style-bordered .wscc-strap-card:hover {
    border-color: #007bff;
}

/* Card Image */
.wscc-strap-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wscc-strap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wscc-no-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.wscc-no-image-icon {
    font-size: 48px;
    opacity: 0.3;
}

/* Card Content */
.wscc-strap-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wscc-strap-name {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.wscc-strap-sku,
.wscc-strap-width {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.wscc-strap-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0;
}

/* Product Link Button */
.wscc-product-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.wscc-product-link:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: #fff;
}

.wscc-not-available {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: auto;
}

/* No Results */
.wscc-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.wscc-no-results {
    font-size: 18px;
    color: #666;
}

/* Error */
.wscc-error {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .wscc-title {
        font-size: 24px;
    }
    
    .wscc-straps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .wscc-strap-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .wscc-straps-grid {
        grid-template-columns: 1fr;
    }
    
    .wscc-container {
        padding: 20px 15px;
    }
}

/* Accessibility */
.wscc-watch-dropdown:focus-visible,
.wscc-search-field:focus-visible,
.wscc-product-link:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .wscc-selector-wrapper,
    .wscc-search-box {
        display: none;
    }
    
    .wscc-strap-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
