/* Styles für Premium-Features und den Upgrade-Dialog */

/* Pro-Badge Styling */
.pro-indicator {
    display: inline-block;
    background-color: #f1c40f;
    color: #7f5803;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Pro-Feature Tipps */
.pro-feature-tip {
    display: inline-block;
    font-size: 11px;
    background-color: #f1c40f;
    color: #7f5803;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.eisenhower-dark-mode .pro-feature-tip {
    background-color: #f39c12;
    color: #fff;
}

/* Upgrade-Dialog Styling */
.upgrade-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.upgrade-dialog.visible {
    display: flex;
    opacity: 1;
}

.upgrade-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: dialogIn 0.4s ease-out forwards;
}

@keyframes dialogIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.upgrade-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.close-upgrade {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
}

.close-upgrade:hover {
    color: #7f8c8d;
}

.upgrade-body {
    padding: 20px;
}

.upgrade-intro {
    margin-bottom: 20px;
    text-align: center;
}

.feature-comparison {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.plan-column {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    min-width: 200px;
    text-align: center;
}

.plan-column.pro {
    background-color: #f5f9ff;
    border: 2px solid #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.pro-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #3498db;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
}

.plan-column h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.feature-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-highlight {
    transition: all 0.3s ease;
}

.feature-highlight.emphasize {
    background-color: #fffacd;
    padding: 5px;
    margin: 5px -5px;
    border-radius: 5px;
    color: #d35400;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(211, 84, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0); }
}

.plan-price {
    margin-top: 20px;
    text-align: center;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.price-note {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.upgrade-actions {
    text-align: center;
    margin-top: 20px;
}

.upgrade-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upgrade-note {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Premium Controls */
.premium-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.show-features-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.show-features-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Feature-Badge bei Aufgaben */
.feature-badge {
    display: inline-block;
    font-size: 9px;
    background-color: #f1c40f;
    color: #7f5803;
    padding: 1px 4px;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: top;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Upgrade-Button */
.upgrade-to-pro-btn {
    background-color: #f1c40f;
    color: #7f5803;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.2s ease;
}

.upgrade-to-pro-btn:hover {
    background-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Test-Pro Button Styling */
.test-pro-button {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-pro-button:hover {
    background-color: #8e44ad;
}

.test-pro-button.revert {
    background-color: #e74c3c;
    margin-left: 8px;
}

.test-pro-button.revert:hover {
    background-color: #c0392b;
}

/* Premium-Feature Stile */
.premium-feature {
    position: relative;
}

.premium-feature::before {
    content: '🔒';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    z-index: 10;
}

.premium-feature.premium-active::before {
    content: '✅';
}

/* Pro-Version der Features */
.premium-active {
    opacity: 1 !important;
}

/* Spezielles Styling für Darkmode */
body.eisenhower-dark-mode .upgrade-content {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.eisenhower-dark-mode .upgrade-header h2 {
    color: #ecf0f1;
}

body.eisenhower-dark-mode .plan-column {
    background-color: #34495e;
}

body.eisenhower-dark-mode .plan-column.pro {
    background-color: #2c3e50;
    border-color: #3498db;
}

body.eisenhower-dark-mode .price {
    color: #ecf0f1;
}

body.eisenhower-dark-mode .price-note,
body.eisenhower-dark-mode .upgrade-note {
    color: #bdc3c7;
}

body.eisenhower-dark-mode .feature-highlight.emphasize {
    background-color: #2c3e50;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-comparison {
        flex-direction: column;
    }
    
    .plan-column {
        margin-bottom: 30px;
    }
    
    .pro-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .upgrade-content {
        max-width: 100%;
    }
}
