:root {
    --primary: #e95f47;
    --white: #fff;
    --off-white: whitesmoke;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    padding: 1rem;
    line-height: 1.5;
}

.container {
    max-width: 56rem;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1rem;
}

.platforms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.platform:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

details {
    border: none;
}

details summary {
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary:hover {
    background-color: #f9fafb;
}

/* Icon animation on hover */
.platform-icon svg {
    transition: transform 0.1s ease;
}

summary:hover .platform-icon svg {
    animation: icon-spin 0.8s ease-in-out;
}

@keyframes icon-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Smooth Animation */
.platform-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

details[open] .platform-content {
    max-height: 3000px;
    transition: max-height 0.6s ease-in;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    flex-shrink: 0;
    will-change: transform;
}

.platform-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.platform-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.platform-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.platform-users {
    font-size: 0.875rem;
    color: #6b7280;
}

.platform-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.chevron {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

details[open] .chevron {
    transform: rotate(180deg);
}

.platform-content-inner {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

/* Default closed state */
details:not([open]) .platform-content-inner {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Open state */
details[open] .platform-content-inner {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-name {
        font-size: 1rem;
    }

    .platform-users {
        font-size: 0.875rem;
    }

    .platform-meta {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-box {
    padding: 1rem;
    background: white;
    border: 1px solid #cfd8dc;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.stat-box:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 1.125rem;
    }
}

.stat-label svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 0.875rem;
    }
}

.practices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.practice-section {
    padding: 1rem;
}

.practice-title {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .practice-title {
        font-size: 1.125rem;
    }
}

.practice-title svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.practice-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

@media (min-width: 640px) {
    .practice-item {
        font-size: 0.875rem;
    }
}

.practice-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Format Cards (für Bildgrößen) */
.format-card {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.format-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.format-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.format-size {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.format-size svg {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    flex-shrink: 0;
}

.format-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: #f9fafb;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
}

.format-notes svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.format-notes p {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
}

/* Background colors */
.bg-red-100 { background-color: #fee2e2; }
.bg-pink-100 { background-color: #fce7f3; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-gray-100 { background-color: #f3f4f6; }

/* Text colors */
.text-primary { color: var(--primary); }
.text-green { color: #22c55e; }
.text-red { color: #ef4444; }

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease;
}

.download-btn:hover {
    opacity: 0.9;
}

.download-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Additional Info */
.additional-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff7ed;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

.additional-info-description {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.example-images {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.example-image {
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
