/**
 * autoWASH Integration Styles
 */

/* Container for iframes */
.autowash-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.autowash-container iframe {
    display: block;
    border: none;
    min-height: 600px;
}

/* Error message */
.autowash-error {
    padding: 40px;
    text-align: center;
    background: #fee;
    color: #c00;
    border-radius: 8px;
    margin: 20px 0;
}

/* Downloads section */
.autowash-downloads {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.autowash-downloads h2 {
    text-align: center;
    font-size: 2.5em;
    color: #00E676;
    margin-bottom: 20px;
}

.autowash-downloads > p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.download-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.download-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.download-card p {
    color: #666;
    margin-bottom: 25px;
}

.autowash-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: white !important;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.autowash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
    color: white !important;
}

/* Download info section */
.download-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.download-info h4 {
    color: #333;
    margin-bottom: 15px;
}

.download-info ul {
    list-style: none;
    padding: 0;
}

.download-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.download-info li:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autowash-downloads h2 {
        font-size: 1.8em;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-card {
        padding: 25px;
    }
    
    .autowash-container iframe {
        min-height: 500px;
    }
}

/* WordPress admin styles */
.autowash-admin-wrap {
    max-width: 1200px;
}

.autowash-admin-wrap table {
    margin-top: 20px;
}

.autowash-admin-wrap code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Noscript fallback */
noscript {
    display: block;
    padding: 40px;
    text-align: center;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

noscript p {
    color: #92400e;
    margin-bottom: 15px;
}

noscript a {
    color: #00E676;
    font-weight: 600;
}
