/* PKNMS - Main Stylesheet */

/* Reset and Base Styles - Tailwind Compatible */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
}

/* Random Polygon Styles */
.random-polygon {
    position: relative;
    background: linear-gradient(135deg, #ff80b5, #9089fc);
    opacity: 0.3;
    transform: rotate(30deg);
    transition: all 0.3s ease;
    animation: polygonFloat 6s ease-in-out infinite;
}

.random-polygon:hover {
    opacity: 0.5;
    transform: rotate(30deg) scale(1.05);
}

/* Polygon Animation */
@keyframes polygonFloat {
    0%, 100% {
        transform: rotate(30deg) translateY(0px);
    }
    50% {
        transform: rotate(30deg) translateY(-10px);
    }
}

/* Gradient Backgrounds */
.bg-linear-to-tr {
    background: linear-gradient(to top right, #ff80b5, #9089fc);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 20px 0;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Styles */
.content {
    padding: 40px;
}

.page-title {
    color: #333;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

/* User List Styles */
.user-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.user-list li {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #007bff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.user-id {
    font-weight: bold;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* About Page Styles */
.about-content {
    line-height: 1.8;
}

.feature-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid #2196f3;
}

.feature-box h3 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-box ul {
    list-style: none;
    padding-left: 0;
}

.feature-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Footer Styles */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .content {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .user-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Category Box Improvements - Fixed Size */
.category-box {
    width: 300px;
    height: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Fixed Box Size Class */
.fixed-box-300x180 {
    width: 300px;
    height: 180px;
    flex-shrink: 0;
}

.category-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.category-box:active {
    transform: translateY(-2px) scale(1.01);
}

/* Mobile Optimizations - Fixed Size */
@media (max-width: 640px) {
    .category-box {
        width: 100%;
        max-width: 300px;
        height: 150px;
        margin: 0 auto;
    }
    
    .category-content h3 {
        font-size: 1rem; /* text-base */
    }
    
    .category-content p {
        font-size: 0.75rem; /* text-xs */
        line-height: 1.3;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .category-box {
        width: 100%;
        max-width: 100%;
        height: 160px;
    }
}

/* Desktop Optimizations */
@media (min-width: 1025px) {
    .category-box {
        width: 300px;
        height: 180px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .category-box {
        width: 100%;
        max-width: 362px;
        height: 222px;
        margin: 0 auto;
    }
    
    .category-box:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}