* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#weeklycross-dictionary {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* Search Section */
.wcp-search-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.wcp-search-title {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.wcp-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

#wcp-search-input {
    flex: 1;
    padding: 18px 25px;
    border: 3px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    outline: none;
}

#wcp-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.1);
}

.wcp-search-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.wcp-search-button:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

/* Charts Section */
.wcp-charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.wcp-chart-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.wcp-chart-title {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.wcp-chart-subtitle {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.wcp-chart {
    height: auto;
    position: relative;
}

.wcp-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.wcp-bar-label {
    min-width: 80px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

.wcp-bar-container {
    flex: 1;
    height: 35px;
    background: #f7fafc;
    border-radius: 17px;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

.wcp-bar-fill {
    height: 100%;
    border-radius: 17px;
    transition: width 0.8s ease;
    position: relative;
}

.wcp-bar-fill.easy {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.wcp-bar-fill.medium {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.wcp-bar-fill.hard {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.wcp-bar-value {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
}

/* Survey Rating Buttons */
.wcp-rating-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.wcp-rating-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.wcp-rating-btn.easy {
    background: #38a169;
}

.wcp-rating-btn.medium {
    background: #ed8936;
}

.wcp-rating-btn.hard {
    background: #e53e3e;
}

.wcp-rating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Loading state */
.wcp-loading {
    text-align: center;
    padding: 40px 20px;
    color: #667eea;
    display: none;
}

.wcp-loading.show {
    display: block;
}

.wcp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Card */
.wcp-result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
    display: none;
    animation: fadeIn 0.3s ease;
}

.wcp-result-card.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcp-verb-title {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.wcp-verb-pronunciation {
    font-family: 'Courier New', monospace;
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.wcp-verb-definition {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wcp-verb-examples {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 3px solid #667eea;
}

.wcp-examples-title {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.wcp-example {
    margin-bottom: 10px;
    font-style: italic;
    color: #4a5568;
}

.wcp-example:last-child {
    margin-bottom: 0;
}

.wcp-verb-category {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #667eea;
    color: white;
    margin-bottom: 15px;
}

/* Additional fields */
.wcp-verb-variations {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #4a5568;
}

.wcp-verb-relations {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wcp-synonyms-section, .wcp-antonyms-section {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.wcp-synonyms-section {
    border-left: 4px solid #38a169;
}

.wcp-antonyms-section {
    border-left: 4px solid #e53e3e;
}

.wcp-verb-tags {
    margin-bottom: 15px;
}

.wcp-tags-title {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.wcp-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcp-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.wcp-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Difficulty Rating Section in Card */
.wcp-difficulty-rating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.wcp-rating-question h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.wcp-rating-question p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.wcp-rating-buttons-card {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.wcp-rating-btn-card {
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 30px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wcp-rating-btn-card:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
}

.wcp-rating-btn-card.voted {
    background: white;
    color: #667eea;
    border-color: white;
}

/* No results */
.wcp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wcp-no-results.show {
    display: block;
}

.wcp-no-results h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .wcp-search-container {
        flex-direction: column;
    }
    
    #wcp-search-input {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .wcp-charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wcp-bar-label {
        min-width: 60px;
        font-size: 0.9rem;
    }

    .wcp-rating-buttons {
        flex-wrap: wrap;
    }

    .wcp-rating-buttons-card {
        flex-direction: column;
        align-items: center;
    }

    .wcp-rating-btn-card {
        width: 100%;
        max-width: 200px;
    }

    .wcp-verb-relations {
        flex-direction: column;
    }

    .wcp-synonyms-section, .wcp-antonyms-section {
        min-width: auto;
    }
}