@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html {
        font-family: 'Roboto Slab', serif;
        scroll-behavior: smooth;
    }

    body {
        @apply bg-amber-50 text-gray-900;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Oswald', sans-serif;
        @apply font-bold uppercase tracking-tighter text-red-700;
    }

    .prose-red h2 {
        @apply text-gray-900 normal-case tracking-normal;
    }
    .prose-red ol > li::marker {
        @apply text-red-700 font-bold;
    }
    .prose-red a {
        @apply text-red-700 hover:text-red-900;
    }

    /* Retro-Feinschliff */
    .retro-shadow {
        box-shadow: 0 6px 0 rgba(0,0,0,0.12);
    }

    #cart-count-desktop {
        position: absolute;
        top: -0.45rem;
        right: -0.45rem;
        z-index: 40;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 .15rem;
    }
    #cart-count-mobile {
        position: absolute;
        top: -0.45rem;
        right: -0.75rem;
        z-index: 40;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 .15rem;
    }

    header nav .container {
        overflow: visible;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    @media (max-width: 420px) {
        .btn-primary, .btn-secondary {
            width: 100%;
            display: inline-flex;
            justify-content: center;
        }
    }
}

/* To-Do für später: Schriftarten lokal einbinden
   assets/fonts/Gilroy-Regular.woff2
   assets/fonts/Gilroy-Bold.woff2
   (oder passe die Pfade an)
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/


:root, html, body {
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, picture, video, iframe, embed, object, svg, canvas {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

table {
    max-width: 100%;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

pre, code {
    max-width: 100%;
    overflow: auto;
    word-break: break-word;
    white-space: pre-wrap;
}

.container, .site-container, .page-container {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

.text-stroke {
    -webkit-text-stroke: 2px #b91c1c; /* red-700 */
    color: transparent;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.user-status {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #d32f2f;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #d32f2f;
}

.card-content {
    color: #666;
    line-height: 1.6;
}

.card-action {
    margin-top: 1rem;
}

.quick-actions {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.quick-actions h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #d32f2f;
    color: white;
}

.action-btn.primary {
    background: #d32f2f;
    color: white;
}

.action-btn.primary:hover {
    background: #b71c1c;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.admin-badge {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        text-align: center;
    }
}

