/* Modern, card-based styles for Word Counter Tool */
.pwct-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pwct-tool-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.pwct-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.pwct-card:hover {
    transform: translateY(-5px);
}

.pwct-textarea {
    width: 100%;
    min-height: 250px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.pwct-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.pwct-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.pwct-stat-card {
    background: #f8faff;
    border-radius: 16px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.pwct-stat-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(102,126,234,0.2);
}

.pwct-stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.pwct-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.pwct-keyword-card {
    grid-column: span 2;
}

.pwct-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.95rem;
    color: #334155;
    margin-top: 0.3rem;
}

.pwct-keyword-item {
    background: #e0e7ff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
}

.pwct-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pwct-btn {
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: #1e293b;
    min-width: 140px;
}

.pwct-btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(102,126,234,0.3);
}

.pwct-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(102,126,234,0.4);
}

.pwct-btn-gradient:active {
    transform: translateY(0);
}

.pwct-seo-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pwct-faq-section {
    background: #f8faff;
    border-radius: 20px;
    padding: 2rem;
}

.pwct-faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.pwct-faq-item:last-child {
    border-bottom: none;
}

.pwct-faq-item h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Loading animation (skeleton effect) */
.pwct-stat-value.loading {
    display: inline-block;
    width: 50px;
    height: 2rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .pwct-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pwct-keyword-card {
        grid-column: span 2;
    }
    .pwct-tool-title {
        font-size: 1.8rem;
    }
    .pwct-card {
        padding: 1.5rem;
    }
    .pwct-btn {
        width: 100%;
    }
}