:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: rgba(0, 0, 0, 0.7);
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --text-muted: #888;
    --accent: #e3e3dc;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
}

/* Navigace */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 300;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}



/* Hero sekce */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.hero-with-image {
    background: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sekce */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

/* Kategorie filtry */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 4rem 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.filter-btn .count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.artwork-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.artwork-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.artwork-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.artwork-card:hover .artwork-image img {
    transform: scale(1.05);
}

.artwork-info {
    padding: 2rem;
}

.artwork-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.artwork-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Štítek Na prodej */
.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.sale-link {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sale-link:hover {
    background: #d4d4c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* O mně */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.profile-photo {
    margin-bottom: 3rem;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    white-space: pre-line;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

/* Kontakt */
.contact-info {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Stránka prodeje */
.sale-hero {
    padding: 12rem 0 8rem 0;
    background: var(--bg-secondary);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.sale-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.sale-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.sale-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4rem;
    text-align: left;
}

.sale-contact {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.sale-contact h3 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.contact-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.btn-back {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Patička */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    color: var(--accent);
}

/* Navigační šipky v modalu - SKRYTÉ */
.modal-nav {
    display: none !important;
}

/* Počítadlo pozice v modalu - SKRYTÉ */
.modal-counter {
    display: none !important;
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem;
    flex: 1;
    height: 100%;
    overflow: hidden;
    align-items: start;
}

.modal-images {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal-images img {
    max-width: 100%;
    max-height: calc(100vh - 300px);
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.modal-gallery {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.modal-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-gallery img.active {
    opacity: 1;
    border: 3px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(227, 227, 220, 0.5);
}

.gallery-loading {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-info h3 {
    font-size: 2rem;
    color: var(--accent);
    margin: 0;
    font-weight: 300;
    flex: 1;
}

.modal-sale-tag {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-sale-tag:hover {
    background: #d4d4c7;
    transform: translateY(-2px);
}

.modal-info {
    height: 100%;
    overflow: hidden;
    padding-right: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.modal-info-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styling pro webkit browsery */
.modal-info-content::-webkit-scrollbar {
    width: 6px;
}

.modal-info-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-info-content::-webkit-scrollbar-thumb {
    background: rgba(227, 227, 220, 0.5);
    border-radius: 3px;
}

.modal-info-content::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 227, 220, 0.7);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.modal-meta span {
    font-weight: 400;
}

.meta-separator {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.6;
}

.modal-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Responzivní design */
@media (max-width: 1024px) {
    .modal-body {
        gap: 2rem;
        padding: 2rem;
    }
    
    .modal-images img {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Modal responzivní úpravy */
    .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .modal-images {
        flex: 0 0 auto;
        margin-bottom: 0;
        justify-content: center;
        padding: 1rem 1rem 0 1rem;
    }
    
    .modal-images img {
        max-height: 50vh;
        width: 100%;
        max-width: 100%;
    }
    
    .modal-info {
        flex: 1;
        overflow: hidden;
        padding: 1rem;
        padding-top: 0;
    }
    
    .modal-info-content {
        overflow-y: auto;
        max-height: 35vh;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .modal-sale-tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-gallery {
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        margin: 1rem;
        margin-bottom: 0;
        border-radius: 12px;
        gap: 0.5rem;
    }
    
    .modal-gallery img {
        width: 70px;
        height: 70px;
        border-width: 2px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    }
    
    .modal-gallery img {
        width: 60px;
        height: 60px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .profile-photo img {
        width: 150px;
        height: 150px;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-bg-image {
        object-position: center center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    /* Štítek na prodej - responzivní úprava */
    .sale-badge {
        top: 10px !important;
        right: 10px !important;
        position: absolute !important;
        z-index: 5 !important;
    }
    
    .sale-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
        background: var(--accent) !important;
        color: var(--bg-primary) !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        display: inline-block !important;
    }
}

/* Ještě menší obrazovky */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-close {
        top: 5px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 0;
        gap: 0;
    }
    
    .modal-images {
        padding: 0.5rem 0.5rem 0 0.5rem;
    }
    
    .modal-images img {
        max-height: 40vh;
        width: 100%;
    }
    
    .modal-info {
        padding: 0.5rem;
        padding-top: 0;
    }
    
    .modal-info-content {
        max-height: 30vh;
        overflow-y: auto;
    }
    
    .modal-gallery {
        padding: 0.5rem;
        gap: 0.3rem;
        margin-top: 0.5rem;
    }
    
    .modal-gallery img {
        width: 50px;
        height: 50px;
        border-width: 1px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
    
    .modal-meta {
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .artwork-card {
        margin-bottom: 1rem;
    }
    
    .sale-hero {
        padding: 8rem 0 4rem 0;
    }
    
    .sale-title {
        font-size: 2rem;
    }
    
    .sale-text {
        font-size: 1rem;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .contact-details p {
        text-align: center;
        font-size: 1rem;
    }
    
    .btn-back {
        width: 100%;
        text-align: center;
        padding: 1.2rem 2rem;
    }
    
    /* Kategorie tlačítka - mobile fix */
    .category-filters {
        flex-wrap: wrap !important;
        gap: 0.8rem !important;
        margin: 1.5rem 0 3rem 0 !important;
        justify-content: center !important;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        border: 2px solid var(--border) !important;
        background: transparent !important;
        color: var(--text-secondary) !important;
        border-radius: 25px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }
    
    .filter-btn.active {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
        color: var(--bg-primary) !important;
    }
    
    .filter-btn .count {
        font-size: 0.75rem !important;
        opacity: 0.8 !important;
    }
}

/* Touch-friendly styly pro mobily */
@media (max-width: 768px) {
    .artwork-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(227, 227, 220, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    .artwork-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .modal-close {
        font-size: 2.5rem;
        top: 15px;
        right: 20px;
        padding: 0.8rem;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }
    
    .modal-close:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }
    
    .modal-gallery {
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    
    .modal-gallery img {
        width: 50px;
        height: 50px;
        -webkit-tap-highlight-color: rgba(227, 227, 220, 0.2);
        touch-action: manipulation;
    }
    
    .modal-gallery img:hover {
        transform: scale(1.05); /* Menší hover efekt na mobilech */
    }
    
    .modal-gallery img.active {
        transform: scale(1.05);
    }
    
    .sale-link {
        -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3);
        touch-action: manipulation;
    }
    
    /* Navigační šipky a counter - ODSTRANĚNO */
}

/* Animace pro načítání */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artwork-card {
    animation: fadeInUp 0.6s ease-out;
}

.artwork-card:nth-child(2) {
    animation-delay: 0.1s;
}

.artwork-card:nth-child(3) {
    animation-delay: 0.2s;
}

.artwork-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Extra malé obrazovky */
@media (max-width: 360px) {
    .modal-images {
        padding: 0.3rem 0.3rem 0 0.3rem;
    }
    
    .modal-info {
        padding: 0.3rem;
        padding-top: 0;
    }
    
    .modal-gallery {
        margin: 0.3rem;
        margin-bottom: 0;
        padding: 0.5rem;
        gap: 0.3rem;
    }
    
    .modal-gallery img {
        width: 45px;
        height: 45px;
    }
    
    .modal-images img {
        max-height: 35vh;
    }
    
    .modal-info-content {
        max-height: 35vh;
    }
}

/* Animace pro filtrování */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artwork-card {
    transition: all 0.3s ease;
}

/* Detail kategorie */
.category-detail {
    margin: 1.5rem 0;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.category-detail.show {
    opacity: 1;
    transform: translateY(0);
}

.category-detail p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .category-detail {
        margin: 1rem 0;
    }
    
    .category-detail p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}