/**
 * ResellerHero Elementor Integration Styles
 * 
 * Styles for Elementor widgets including domain search and hosting plans.
 *
 * @package ResellerHero
 * @since 2.0.0
 */

/* Elementor Widget Base */
.rh-elementor-widget {
    font-family: inherit;
}

/* Domain Search Elementor Widget */
.rh-elementor-domain-search {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.rh-elementor-domain-search .widget-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.rh-elementor-domain-search .widget-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.rh-elementor-domain-search .search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
    gap: 10px;
}

.rh-elementor-domain-search .domain-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.rh-elementor-domain-search .domain-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.rh-elementor-domain-search .search-button {
    padding: 15px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rh-elementor-domain-search .search-button:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.rh-elementor-domain-search .tld-suggestions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.rh-elementor-domain-search .tld-tag {
    padding: 8px 16px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rh-elementor-domain-search .tld-tag:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Hosting Plans Elementor Widget */
.rh-elementor-hosting-plans {
    padding: 20px 0;
}

.rh-elementor-hosting-plans .widget-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.rh-hosting-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.rh-hosting-plan-card {
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rh-hosting-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.rh-hosting-plan-card.featured {
    border-color: #0073aa;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,115,170,0.2);
}

.rh-hosting-plan-card.featured:before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

.rh-plan-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.rh-plan-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
    line-height: 1;
}

.rh-plan-period {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.rh-plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.rh-plan-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    line-height: 1.4;
}

.rh-plan-features li:before {
    content: "✓";
    color: #46b450;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.rh-plan-button {
    display: inline-block;
    padding: 15px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.rh-plan-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.rh-hosting-plan-card.featured .rh-plan-button {
    background: #46b450;
}

.rh-hosting-plan-card.featured .rh-plan-button:hover {
    background: #3e9b47;
}

/* Elementor Editor Styles */
.elementor-editor .rh-elementor-widget {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.elementor-editor .rh-elementor-widget:before {
    content: "ResellerHero Widget";
    color: #666;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rh-elementor-domain-search {
        padding: 20px;
    }
    
    .rh-elementor-domain-search .widget-title {
        font-size: 1.8em;
    }
    
    .rh-elementor-domain-search .search-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .rh-hosting-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rh-hosting-plan-card.featured {
        transform: none;
    }
    
    .rh-hosting-plan-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .rh-plan-price {
        font-size: 2em;
    }
    
    .rh-tld-suggestions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rh-elementor-domain-search .widget-title {
        font-size: 1.5em;
    }
    
    .rh-elementor-hosting-plans .widget-title {
        font-size: 1.8em;
    }
    
    .rh-hosting-plan-card {
        padding: 20px 15px;
    }
    
    .rh-plan-name {
        font-size: 1.3em;
    }
    
    .rh-plan-price {
        font-size: 1.8em;
    }
}
