/* Letras Diferentes Plugin Styles */
.ld-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ld-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.ld-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.ld-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ld-logo-icon {
    background: #3b82f6;
    padding: 8px;
    border-radius: 8px;
    color: white;
}

.ld-logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin: 0;
}

.ld-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Input Section */
.ld-input-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 32px;
}

.ld-input-header {
    text-align: center;
    margin-bottom: 24px;
}

.ld-input-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
    margin: 0 0 8px 0;
}

.ld-input-header p {
    color: #6b7280;
    margin: 0;
}

.ld-input-container {
    max-width: 600px;
    margin: 0 auto;
}

#ld-text-input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

#ld-text-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Categories */
.ld-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.ld-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
}

.ld-category-btn:hover {
    background: #f9fafb;
}

.ld-category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Results Grid */
.ld-results-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ld-result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.ld-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ld-card-content {
    padding: 24px;
}

.ld-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ld-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.ld-card-category {
    font-size: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 9999px;
}

.ld-preview-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-preview-text {
    font-size: 20px;
    line-height: 1.5;
    color: #111827;
    word-break: break-all;
    text-align: center;
    font-weight: 500;
}

.ld-copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.ld-copy-btn:not(.copied) {
    background: #111827;
    color: white;
}

.ld-copy-btn:not(.copied):hover {
    background: #000000;
}

.ld-copy-btn.copied {
    background: #059669;
    color: white;
}

/* No Results */
.ld-no-results {
    text-align: center;
    padding: 48px 0;
    color: #6b7280;
}

.ld-no-results svg {
    margin: 0 auto 16px;
    color: #9ca3af;
}

/* Footer */
.ld-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 64px;
    padding: 32px 0;
    text-align: center;
    color: #6b7280;
}

.ld-footer p {
    margin: 0;
}

.ld-footer-sub {
    font-size: 14px;
    margin-top: 8px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ld-container {
        padding: 0 16px;
    }
    
    .ld-header-content {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 8px;
    }
    
    .ld-input-section {
        padding: 24px 16px;
    }
    
    .ld-input-header h2 {
        font-size: 24px;
    }
    
    .ld-categories {
        gap: 8px;
    }
    
    .ld-category-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .ld-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ld-card-content {
        padding: 16px;
    }
    
    .ld-preview-text {
        font-size: 18px;
    }
}

/* WordPress specific overrides */
#letras-diferentes-app * {
    box-sizing: border-box;
}

#letras-diferentes-app {
    background: #f9fafb;
    margin: 0 -20px;
    padding: 0;
}

/* Override WordPress theme styles */
#letras-diferentes-app h1,
#letras-diferentes-app h2,
#letras-diferentes-app h3,
#letras-diferentes-app p {
    line-height: inherit;
}

#letras-diferentes-app button {
    font-family: inherit;
}