/* Shimmer-Button Animation - Magic UI-inspiriert */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(360deg);
    }
}

@keyframes spin-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    15%, 35% {
        transform: translate(10px, -10px) rotate(90deg);
    }
    65%, 85% {
        transform: translate(-10px, 10px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Widget Button Ghost - Ghost-Button (auch als Tab-Link: keine Unterstreichung) */
.widget-button-ghost {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.widget-button-ghost:hover {
    filter: brightness(0.98);
    text-decoration: none;
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .widget-button-ghost {
        padding: 10px 12px;
        min-height: auto;
        flex-shrink: 0;
    }
}

/* base-button-standard: Regel-konforme Button-Klasse (Alias zu widget-button-standard) */
.base-button-standard,
.widget-button-standard {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.base-button-standard::before,
.widget-button-standard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.base-button-standard:hover,
.widget-button-standard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.base-button-standard:hover::before,
.widget-button-standard:hover::before {
    left: 100%;
}

.base-button-standard:active,
.widget-button-standard:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.widget-button-delete {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 12px 24px;
    background-color: var(--color-error);
    color: var(--color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.widget-button-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.widget-button-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.widget-button-delete:hover::before {
    left: 100%;
}

.widget-button-delete:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.widget-button-google {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 10px 20px;
    background-color: var(--color-google-button-bg);
    color: var(--color-text-inverse);
    border: 1px solid var(--color-google-button-border);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.widget-button-google:hover {
    background-color: var(--color-google-button-bg-hover);
    border-color: var(--color-google-button-border-hover);
}

.widget-button-google:active {
    background-color: var(--color-google-button-bg-active);
}
