/* Figma Make Competition Portfolio Styles */
/* Minimal CSS for production without CDN dependencies */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: opacity 0.3s ease;
}

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.fixed { position: fixed; }
.relative { position: relative; }

/* Spacing utilities */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.top-6 { top: 1.5rem; }
.left-6 { left: 1.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-xl { font-size: 1.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-gray-600 { color: #6b7280; }
.text-gray-900 { color: #111827; }
.text-white { color: #ffffff; }
.text-blue-700 { color: #1d4ed8; }
.text-green-700 { color: #15803d; }
.text-purple-700 { color: #7c3aed; }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-100 { background-color: #dcfce7; }
.bg-purple-100 { background-color: #e9d5ff; }

/* Layout utilities */
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.gap-2 > * { margin: 0.25rem; }
.gap-8 { gap: 2rem; }

/* Navigation improvements */
.nav-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
    padding: 0.5rem;
}

.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Enhanced Grid layouts */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Small mobile: 1 column */
@media (max-width: 480px) {
    .grid { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Medium mobile: 1 column with more space */
@media (min-width: 481px) and (max-width: 640px) {
    .grid { 
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Large mobile/small tablet: 2 columns */
@media (min-width: 641px) and (max-width: 768px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid { gap: 1.5rem; }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid { gap: 1.5rem; }
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid { gap: 2rem; }
}

/* Large desktop: 4 columns */
@media (min-width: 1400px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Border radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }

/* Interactive elements */
.cursor-pointer { cursor: pointer; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; }
.transition-shadow { transition-property: box-shadow; transition-duration: 0.15s; }

.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }

/* Border utilities */
.border-none { border: none; }

/* Size utilities */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

/* Specific component styles */
.app-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.gradient-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Enhanced Mobile and Tablet Responsiveness */

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .py-12 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .mb-16 {
        margin-bottom: 1.5rem;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem;
    }
    
    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    /* Mobile navigation adjustments */
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Smaller app cards on mobile */
    .gradient-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .w-12 { width: 2.5rem; }
    .h-12 { height: 2.5rem; }
}

/* Medium mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-16 {
        margin-bottom: 2rem;
    }
    
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .text-5xl {
        font-size: 3rem;
    }
    
    /* Tablet-specific grid adjustments */
    .grid {
        gap: 1.5rem;
    }
}

/* Large screens (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .app-card {
        /* Larger touch targets */
        min-height: 200px;
        /* Improve touch feedback */
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    .category-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    #back-button button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.875rem;
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    /* Reduce hover effects on touch devices */
    .app-card:hover {
        transform: none;
    }
    
    /* Active states for touch feedback */
    .app-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .category-btn:active {
        opacity: 0.8;
    }
}

/* Landscape orientation optimizations */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .py-12 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .mb-16 {
        margin-bottom: 1rem;
    }
    
    .mb-12 {
        margin-bottom: 1rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-xl {
        font-size: 1rem;
    }
}

/* Very small screens (like older phones) */
@media (max-width: 360px) {
    .category-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-buttons {
        gap: 0.25rem;
    }
    
    .text-5xl {
        font-size: 1.75rem;
    }
}

/* Full screen iframe for apps */
#app-iframe {
    width: 100vw;
    height: 100vh;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Back button */
#back-button button {
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    border-radius: 9999px;
    padding: 0.75rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

#back-button button:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

#back-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #6b7280;
}
