/**
 * ResellerClub Public Styles
 */

/* Domain Search */
.rc-domain-search {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rc-search-header h2 {
    text-align: center;
    margin: 0 0 30px;
    font-size: 28px;
    color: #1d2327;
}

.rc-search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rc-search-input-group input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.rc-search-input-group input:focus {
    outline: none;
    border-color: #2271b1;
}

.rc-search-button {
    padding: 15px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rc-search-button:hover {
    background: #135e96;
}

.rc-tld-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.rc-tld-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

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

.rc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Search Results */
.rc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rc-result-item {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.rc-result-item.rc-available {
    border-color: #46b450;
    background: #f0f9f1;
}

.rc-result-item.rc-unavailable {
    border-color: #dc3232;
    background: #fef5f5;
    opacity: 0.7;
}

.rc-domain-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    word-break: break-all;
}

.rc-domain-status {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.rc-available .rc-domain-status {
    color: #46b450;
}

.rc-unavailable .rc-domain-status {
    color: #dc3232;
}

.rc-domain-price {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 15px;
}

.rc-register-button {
    padding: 10px 20px;
    background: #46b450;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.rc-register-button:hover {
    background: #399946;
}

/* Hosting Plans */
.rc-hosting-plans {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
}

.rc-plans-header h2 {
    text-align: center;
    margin: 0 0 40px;
    font-size: 32px;
    color: #1d2327;
}

.rc-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rc-plan-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.rc-plan-card:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.rc-plan-header h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #1d2327;
}

.rc-plan-description {
    color: #646970;
    margin-bottom: 20px;
}

.rc-plan-price {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.rc-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
}

.rc-price-period {
    font-size: 16px;
    color: #646970;
}

.rc-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.rc-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rc-feature-icon {
    color: #46b450;
    margin-right: 10px;
    font-weight: 700;
}

.rc-order-button {
    width: 100%;
    padding: 15px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rc-order-button:hover {
    background: #135e96;
}

/* Modal */
.rc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.rc-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

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

.rc-modal-close:hover {
    color: #333;
}

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

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

.rc-form-group input,
.rc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.rc-submit-button {
    width: 100%;
    padding: 15px;
    background: #46b450;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rc-submit-button:hover {
    background: #399946;
}

/* My Domains/Hosting */
.rc-my-domains,
.rc-my-hosting {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
}

.rc-my-domains h2,
.rc-my-hosting h2 {
    margin: 0 0 30px;
    font-size: 28px;
    color: #1d2327;
}

.rc-domains-list,
.rc-hosting-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rc-domain-item,
.rc-hosting-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rc-domain-info h3,
.rc-hosting-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1d2327;
}

.rc-plan-name {
    color: #646970;
    margin: 5px 0;
}

.rc-domain-meta,
.rc-hosting-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rc-meta-item {
    font-size: 14px;
    color: #646970;
}

.rc-domain-actions,
.rc-hosting-actions {
    display: flex;
    gap: 10px;
}

.rc-button {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.rc-button:hover {
    background: #135e96;
}

.rc-button-small {
    padding: 8px 15px;
    font-size: 14px;
}

/* Error Messages */
.rc-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rc-search-input-group {
        flex-direction: column;
    }
    
    .rc-results-grid,
    .rc-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .rc-domain-item,
    .rc-hosting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rc-domain-actions,
    .rc-hosting-actions {
        width: 100%;
    }
    
    .rc-button {
        flex: 1;
    }
}
