/* Unique Figure Office SARL - Modern Elegant Stylesheet */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #c5a880;
    --accent-color: #d4af37;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d44 100%);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-login {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(45, 45, 68, 0.85) 100%), 
                url('../images/hero-jewelry.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 8rem 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d44 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.login-box h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.login-box .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    background: var(--bg-light);
}

.dashboard-header {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.catalog-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.catalog-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.catalog-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.catalog-details p {
    color: #666;
    margin-bottom: 1rem;
}

.item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .dashboard-content {
        padding: 0 1rem;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Typography scaling */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero .tagline { font-size: 1.1rem; }
    
    /* Navigation */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links { 
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    /* Dashboard Header */
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .dashboard-header > div {
        width: 100%;
    }
    
    .dashboard-header > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-header .btn {
        width: 100%;
    }
    
    /* Admin Navigation */
    .admin-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .admin-nav > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .admin-nav a {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    /* Content layouts */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Catalog grid */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .catalog-image {
        height: 200px;
    }
    
    .catalog-item {
        flex-direction: column;
    }
    
    .catalog-details h3 {
        font-size: 1.1rem;
    }
    
    .catalog-details p {
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .login-card,
    .upload-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Dashboard content */
    .dashboard-content {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    /* Service cards grid */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Filter section */
    .filter-section {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .filter-section > div:first-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-section > div:nth-child(2) {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-section > div:nth-child(2) input {
        width: 100% !important;
    }
    
    .filter-section > div:nth-child(2) button {
        width: 100%;
    }
    
    #search-box {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    #results-count {
        text-align: center !important;
    }
    
    /* Shopping cart */
    #shopping-cart {
        padding: 1rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    #shopping-cart h2 {
        font-size: 1.5rem;
    }
    
    #cart-items > div {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
    }
    
    #cart-items > div > div:first-child {
        width: 60px !important;
        height: 60px !important;
    }
    
    #cart-items > div > div:nth-child(2) {
        width: 100%;
    }
    
    #cart-items > div > div:last-child {
        width: 100%;
        text-align: left !important;
    }
    
    #cart-items button {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Cart quantity controls */
    #cart-items input[type="number"] {
        width: 50px !important;
    }
    
    /* Cart item set details */
    #cart-items .set-items-container {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero h1 { font-size: 2rem; }
    
    .navbar,
    .dashboard-header,
    .admin-nav {
        padding: 0.75rem;
    }
    
    .dashboard-content {
        padding: 0 0.5rem;
    }
    
    .catalog-details {
        padding: 1rem;
    }
    
    .catalog-image {
        height: 180px;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.4rem;
    }
    
    .login-card {
        padding: 1rem;
    }
    
    /* Filters on mobile */
    .filter-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    button, .btn, a.btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
    }
    
    /* Improve form inputs */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Better spacing for touch */
    .catalog-item {
        margin-bottom: 0.5rem;
    }
    
    /* Disable hover effects on touch devices */
    .catalog-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
