
:root {
    --leap-primary: #10b981;
    --leap-primary-dark: #059669;
    --leap-secondary: #3b82f6;
    --leap-accent: #8b5cf6;
    --leap-bg: #f0fdf4;
    --leap-result-leap: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --leap-result-common: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.mtp-leap-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 1rem 0 2rem 0;
}

/* Tool Header */
.mtp-leap-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mtp-leap-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mtp-leap-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--leap-primary), var(--leap-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.mtp-leap-header p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Input Card */
.mtp-leap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.mtp-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.mtp-input-field {
    flex: 1;
    min-width: 200px;
}

.mtp-input-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.mtp-input-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.mtp-input-field input:focus {
    outline: none;
    border-color: var(--leap-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.mtp-check-btn {
    background: linear-gradient(135deg, var(--leap-primary), var(--leap-primary-dark));
    color: white;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.mtp-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Quick Select Buttons */
.mtp-quick-select {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.mtp-quick-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.mtp-quick-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.mtp-quick-btn:hover {
    border-color: var(--leap-primary);
    background: rgba(16, 185, 129, 0.1);
}

/* Result Section - Export Card */
.mtp-result-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mtp-result-card.leap {
    border-top: 4px solid #10b981;
}

.mtp-result-card.common {
    border-top: 4px solid #6b7280;
}

.mtp-result-header {
    padding: 1.8rem;
    text-align: center;
    position: relative;
}

.mtp-result-header.leap-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mtp-result-header.common-bg {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.mtp-result-badge {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.mtp-result-header h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: white;
}

.mtp-result-header .year-display {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.mtp-result-details {
    padding: 1.5rem;
}

.mtp-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}

.mtp-detail-row:last-child {
    border-bottom: none;
}

.mtp-detail-label {
    font-weight: 500;
    color: var(--text-light);
}

.mtp-detail-value {
    font-weight: 600;
    color: var(--text);
}

/* Fixed contrast colors for facts */
.mtp-leap-fact {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #065f46;
}

.mtp-leap-fact.common-fact {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}

.mtp-leap-fact.celebration {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
    margin-top: 0.8rem;
}

/* Action Buttons */
.mtp-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.mtp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.mtp-action-btn:hover {
    transform: translateY(-2px);
}

.mtp-action-btn.export-png {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.mtp-action-btn.export-png:hover {
    background: #0f172a;
}

.mtp-action-btn.share-twitter {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.mtp-action-btn.share-facebook {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.mtp-action-btn.share-linkedin {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.mtp-action-btn.copy-link {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Hidden elements for export */
.export-only {
    display: none;
}

/* Export watermark/credit */
.mtp-export-credit {
    text-align: center;
    padding: 0.8rem;
    font-size: 0.7rem;
    color: #9ca3af;
    border-top: 1px dashed #e5e7eb;
    background: #fafafa;
}

.mtp-export-credit a {
    color: #10b981;
    text-decoration: none;
}

.mtp-export-credit a:hover {
    text-decoration: underline;
}

/* Loading & Error States */
.mtp-loading {
    text-align: center;
    padding: 2rem;
}

.mtp-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    color: #dc2626;
}

/* Fun Facts Section */
.mtp-fun-facts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.mtp-fun-facts h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.mtp-fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}

.mtp-fact-list li {
    padding: 0.6rem 0;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.mtp-fact-list li span {
    font-size: 1.1rem;
    min-width: 28px;
}

/* Toast Notification */
.mtp-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.mtp-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .mtp-leap-card {
        padding: 1.5rem;
    }
    
    .mtp-input-group {
        flex-direction: column;
    }
    
    .mtp-check-btn {
        width: 100%;
    }
    
    .mtp-result-header h2 {
        font-size: 1.4rem;
    }
    
    .mtp-action-buttons {
        flex-wrap: wrap;
    }
    
    .mtp-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
    
    .mtp-fact-list {
        grid-template-columns: 1fr;
    }
}