/**
 * Haruby Coffee Donation - Frontend Styles
 * Modernes, responsives Design für den Spenden-Button
 */

/* Container */
.haruby-coffee-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Kompakter für Widgets/Footer */
.widget .haruby-coffee-container,
.footer .haruby-coffee-container,
aside .haruby-coffee-container {
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0;
}

/* Widget */
.haruby-coffee-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.haruby-coffee-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Header */
.haruby-coffee-header {
    text-align: center;
    margin-bottom: 25px;
}

.haruby-coffee-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.haruby-coffee-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Beträge */
.haruby-coffee-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.haruby-coffee-amount-btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.haruby-coffee-amount-btn:hover {
    background: #f8f9fa;
    border-color: #FF813F;
    transform: scale(1.05);
}

.haruby-coffee-amount-btn.active {
    background: #FF813F;
    border-color: #FF813F;
    color: #ffffff;
    transform: scale(1.05);
}

/* Eigener Betrag */
.haruby-coffee-custom {
    margin-bottom: 25px;
}

.haruby-coffee-custom label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5a6c7d;
}

.haruby-coffee-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.haruby-coffee-input-group input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.haruby-coffee-input-group input:focus {
    outline: none;
    border-color: #FF813F;
    box-shadow: 0 0 0 3px rgba(255, 129, 63, 0.1);
}

.haruby-coffee-currency {
    position: absolute;
    right: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #5a6c7d;
    pointer-events: none;
}

/* Spenden-Button */
.haruby-coffee-donate-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background-color: #FF813F;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 129, 63, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.haruby-coffee-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 129, 63, 0.4);
}

.haruby-coffee-donate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 129, 63, 0.3);
}

/* Dankes-Text */
.haruby-coffee-thank-you {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .haruby-coffee-widget {
        padding: 25px 20px;
    }
    
    .haruby-coffee-header h3 {
        font-size: 20px;
    }
    
    .haruby-coffee-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .haruby-coffee-donate-btn {
        font-size: 16px;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .haruby-coffee-container {
        padding: 0 10px;
    }
    
    .haruby-coffee-widget {
        padding: 20px 15px;
    }
    
    .haruby-coffee-icon {
        font-size: 36px;
    }
    
    .haruby-coffee-header h3 {
        font-size: 18px;
    }
}

/* Widget/Footer spezifische Anpassungen */
.widget .haruby-coffee-widget,
.footer .haruby-coffee-widget,
aside .haruby-coffee-widget {
    padding: 25px 20px;
}

.widget .haruby-coffee-header h3,
.footer .haruby-coffee-header h3,
aside .haruby-coffee-header h3 {
    font-size: 20px;
}

.widget .haruby-coffee-icon,
.footer .haruby-coffee-icon,
aside .haruby-coffee-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

/* Für sehr schmale Footer-Bereiche */
@media (max-width: 600px) {
    .widget .haruby-coffee-amounts,
    .footer .haruby-coffee-amounts,
    aside .haruby-coffee-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation beim Laden */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.haruby-coffee-widget {
    animation: fadeInUp 0.6s ease;
}
