/* Tool-specific styles for US Phone Number Generator */

/* Main container styling */
.us-phone-generator {
    color: #333333;
    line-height: 1.6;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
}

.us-phone-generator .us-phone-container {
    max-width: 1600px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.us-phone-generator .tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.us-phone-generator .tool-header h1 {
    font-size: 2.5rem;
    color: #000000;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.us-phone-generator .tool-description {
    font-size: 1.125rem;
    color: #555555;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.us-phone-generator .social-buttons-container {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Generator panel layout - make selectors more specific */
.us-phone-generator .generator-panel {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .us-phone-generator .generator-panel {
        flex-direction: row;
    }
}

/* Control panel */
.us-phone-generator .control-panel {
    background-color: #e6f0fa;
    padding: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .us-phone-generator .control-panel {
        width: 33.333%;
    }
}

.us-phone-generator .form-group {
    margin-bottom: 24px;
}

.us-phone-generator .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.us-phone-generator .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Quantity control */
.us-phone-generator .quantity-control {
    display: flex;
}

.us-phone-generator .quantity-control .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.us-phone-generator .quantity-buttons {
    display: flex;
    flex-direction: column;
}

.us-phone-generator .quantity-buttons button {
    border: 1px solid #ccc;
    background-color: #e0e0e0;
    cursor: pointer;
    width: 30px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.us-phone-generator .quantity-buttons button:hover {
    background-color: #d0d0d0;
}

.us-phone-generator .quantity-up {
    border-bottom: none;
    border-top-right-radius: 4px;
}

.us-phone-generator .quantity-down {
    border-bottom-right-radius: 4px;
}

/* Generate button */
.us-phone-generator .generate-btn {
    width: 100%;
    padding: 12px;
    background-color: #0d9488;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.us-phone-generator .generate-btn:hover {
    background-color: #0a7b76;
}

/* Results panel */
.us-phone-generator .results-panel {
    padding: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .us-phone-generator .results-panel {
        width: 66.666%;
    }
}

.us-phone-generator .numbers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .us-phone-generator .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .us-phone-generator .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Number card */
.us-phone-generator .number-card {
    background-color: #e6f0fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.us-phone-generator .number-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.us-phone-generator .number-header {
    padding: 12px;
    background-color: #cce0f5;
    font-size: 14px;
    color: #666;
}

.us-phone-generator .number-body {
    padding: 16px;
    text-align: center;
}

.us-phone-generator .phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #a16207;
    margin-bottom: 8px;
}

.us-phone-generator .location {
    font-size: 14px;
    color: #666;
}

/* Phone number loading and highlight effects */
.us-phone-generator .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.us-phone-generator .highlight-effect {
    animation: highlight-pulse 1s ease;
}

@keyframes highlight-pulse {
    0% {
        color: #a16207;
        transform: scale(1);
    }
    50% {
        color: #0d9488;
        transform: scale(1.05);
    }
    100% {
        color: #a16207;
        transform: scale(1);
    }
}

/* Refresh button */
.us-phone-generator .refresh-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.us-phone-generator .refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.us-phone-generator .refresh-btn:hover {
    background-color: #ea580c;
}

.us-phone-generator .refresh-icon {
    display: inline-block;
}

/* Add new styles for the loading cards */
.us-phone-generator .loading-card {
    background-color: #f0f7ff;
    border: 1px solid #cce0f5;
}

.us-phone-generator .phone-number-loading {
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.us-phone-generator .loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 4px;
}

/* Pulse animation for cards */
.us-phone-generator .pulse-animation {
    animation: card-pulse 1.5s infinite;
}

@keyframes card-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 224, 245, 0.7);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(204, 224, 245, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 224, 245, 0);
    }
}

/* Dot pulse animation for the loading indicator */
.us-phone-generator .loading-animation {
    position: relative;
    height: 20px;
    width: 60px;
}

.us-phone-generator .dot-pulse {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #0d9488;
    color: #0d9488;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.25s;
}

.us-phone-generator .dot-pulse::before,
.us-phone-generator .dot-pulse::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #0d9488;
    color: #0d9488;
}

.us-phone-generator .dot-pulse::before {
    left: -15px;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0s;
}

.us-phone-generator .dot-pulse::after {
    left: 15px;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.5s;
}

@keyframes dot-pulse {
    0% {
        transform: scale(0.2);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.2);
        opacity: 0.7;
    }
}

/* Disabled button state */
.us-phone-generator .generate-btn.disabled {
    background-color: #99e2b4;
    cursor: not-allowed;
}

/* Refresh button styling */
.us-phone-generator .refresh-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.us-phone-generator .refresh-btn {
    background-color: #0d9488;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.us-phone-generator .refresh-btn:hover {
    background-color: #0a7b76;
    transform: translateY(-1px);
}

.us-phone-generator .refresh-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.us-phone-generator .refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

/* Social button styles */
.us-phone-generator .social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 36px;
}

.us-phone-generator .social-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.us-phone-generator .social-btn-facebook { background-color: #3b5998; }
.us-phone-generator .social-btn-twitter { background-color: #1da1f2; }
.us-phone-generator .social-btn-linkedin { background-color: #0077b5; }
.us-phone-generator .social-btn-reddit { background-color: #ff4500; }
.us-phone-generator .social-btn-whatsapp { background-color: #25d366; }
.us-phone-generator .social-btn-pinterest { background-color: #bd081c; }

/* SEO Content styling */
.us-phone-generator .seo-content {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.us-phone-generator .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f59e0b;
    display: inline-block;
}

.us-phone-generator .seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.us-phone-generator .seo-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.us-phone-generator .seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.us-phone-generator .seo-content ul,
.us-phone-generator .seo-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.us-phone-generator .seo-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4b5563;
}

.us-phone-generator .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.us-phone-generator .feature-item {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.us-phone-generator .feature-item i {
    color: #f59e0b;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Generator button with spinner */
.us-phone-generator .generate-btn i {
    margin-right: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .us-phone-generator .generator-panel {
        flex-direction: column;
    }

    .us-phone-generator .control-panel {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .us-phone-generator .numbers-grid {
        grid-template-columns: 1fr;
    }

    .us-phone-generator .tool-header h1 {
        font-size: 2rem;
    }

    .us-phone-generator .features-grid {
        grid-template-columns: 1fr;
    }

    .us-phone-generator .us-phone-container {
        padding: 10px;
    }
}

/* Utility classes for the phone tool */
.us-phone-generator .text-center {
    text-align: center;
}

.us-phone-generator .my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.us-phone-generator .mr-1 {
    margin-right: 0.25rem;
}

.us-phone-generator .mr-2 {
    margin-right: 0.5rem;
}

.us-phone-generator .mr-3 {
    margin-right: 0.75rem;
}

/* Reset any conflicting styles */
.us-phone-generator * {
    box-sizing: border-box;
}

.us-phone-generator a {
    text-decoration: none;
}

.us-phone-generator a:hover {
    text-decoration: none;
}