﻿/* 🔄 KufeArt Tablet - CSS Reset */

/* 📱 Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* 📝 Typography Reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--font-semibold);
    line-height: 1.2;
}

p, ul, ol {
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

/* 🖼️ Media Reset */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 📝 Form Reset */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

input, select, textarea {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    background-color: var(--white);
    transition: var(--transition);
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    }

/* 📋 List Reset */
ul, ol {
    list-style: none;
}

/* 📱 Tablet Specific Resets */
body.tablet-mode {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow: hidden;
}

/* 🖱️ Touch Optimizations */
button, a, input, select {
    min-height: 44px; /* Apple's recommended touch target */
    min-width: 44px;
}

/* 🌐 Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 🔄 Loading States */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* 🎯 Focus Management */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
