/* ========================================
   KUNSTMEKKA PROFIL - STYLING v1.2 (RENSET)
   2-kolonners layout på desktop
======================================== */

/* FORCE FULD BREDDE PÅ MOBIL */
.kunstmekka-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.kunstmekka-controls,
.kunstmekka-grid,
.kunstmekka-pagination {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.kunstmekka-profil {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero - FULD BREDDE */
.profil-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.profil-hero img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.profil-hero-info h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.profil-by {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

/* Kontakt - FULD BREDDE */
.profil-kontakt {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profil-kontakt p {
    margin: 0;
    font-size: 16px;
}

.profil-kontakt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.profil-kontakt a:hover {
    color: #764ba2;
}

/* Sociale medier - FULD BREDDE */
.profil-sociale {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 6px 16px;       /* Betydelig mindre fylde (halveret) */
    font-size: 14px;         /* Lidt mindre fond anbringer dem sekundært */
    background: white;
    border: 1px solid #ccc;  /* En lidt finere, tyndere kant */
    border-radius: 6px;      /* Lidt blødere, mindre 'klodset' form */
    color: #555;             /* Lidt blødere farve (mindre kontrast end ren sort) */
    text-decoration: none;
    font-weight: 500;        /* Gør teksten et hak mindre fed */
    transition: all 0.3s;
}


.social-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ========================================
   2-KOLONNERS LAYOUT (kun desktop)
======================================== */

.profil-indhold {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.profil-sektion {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profil-sektion h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.profil-tekst {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.profil-tekst p {
    margin: 0 0 15px 0;
}

.profil-tekst p:last-child {
    margin-bottom: 0;
}

/* Gallerier - FULD BREDDE (uden for grid) */
.profil-gallerier {
    width: 100%;
    margin-bottom: 50px;
}

.profil-gallerier h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.galleri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.galleri-card {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.galleri-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.galleri-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.galleri-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* QR-kode - FULD BREDDE */
.profil-qr {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.profil-qr h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.profil-qr img {
    max-width: 200px;
    height: auto;
}

/* De to kolonner under galleriet */
.profil-hoved-sektion {
    display: grid;
    grid-template-columns: 2fr 1px 1fr; /* Venstre side bred, midterste skiller, højre side sidebar */
    gap: 40px;
    align-items: start;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* Sidebar styling */
.profil-sidebar {
    position: sticky;
    top: 40px;
}

.sidebar-foto {
    padding: 5px;
    border: 1px solid #ddd;
    background: white;
}

.sidebar-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.billed-tekst {
    text-align: center;
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
    color: #888;
}
/* Styling og sikring af Sidebar QR-kode */
.sidebar-qr {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.sidebar-qr h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.sidebar-qr img {
    max-width: 200px;
    width: 100%; /* Sikrer at den krymper, hvis skærmen er ultralille */
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Tablet/Mobil tilpasning af hoved-sektion */
@media (max-width: 992px) {
    .profil-hoved-sektion {
        grid-template-columns: 1fr;
        gap: 20px; /* Reduceret fra 40px så der ikke er for stor afstand på mobil */
    }
    .profil-hoved-sektion * {
        box-sizing: border-box; /* Denne lille magiske linje forhindrer at padding bryder bredden */
    }
    .profil-skiller { display: none; }
    .profil-sidebar {
        order: -1;
        position: static;
        margin-bottom: 20px; /* Giver lidt luft inden teksten starter */
    }
}


/* ========================================
   RESPONSIVT
======================================== */

/* Tablet - TILBAGE TIL 1 KOLONNE */
@media (max-width: 1024px) {
    .profil-indhold {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tablet/Mobil */
@media (max-width: 768px) {
    .profil-hero {
        flex-direction: column;
        text-align: center;
    }

    .profil-hero img {
        width: 120px;
        height: 120px;
    }

    .profil-hero-info h1 {
        font-size: 26px;
    }

    .profil-kontakt {
        flex-direction: column;
        gap: 15px;
    }

    .galleri-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobil */
@media (max-width: 480px) {
    .kunstmekka-profil {
        padding: 0 15px;
        margin: 20px auto;
        overflow-x: hidden; /* Den ultimative stopklods for horisontalt scroll */
    }

    .profil-hero {
        padding: 20px;
    }

    .profil-hero img {
        width: 100px;
        height: 100px;
    }

    .profil-sektion {
        padding: 15px; /* Reduceret fra 30px (giver meget mere plads til teksten på mobil) */
    }

    .profil-sektion h2 {
        font-size: 20px;
    }

    .profil-tekst {
        font-size: 15px;
    }
}


/* Galleri visning */
.vaerk-ramme {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.vaerk-card:hover .vaerk-ramme {
    transform: translateY(-3px);
    border-color: #667eea !important;
}

/* Galleri Grid fundament */
.kunstmekka-galleri-visning {
    width: 100%;
    max-width: 1200px; /* Samme bredde som profil */
    margin: 0 auto;
}

.vaerk-grid {
    width: 100% !important;
}

/* Værk-kort med bottom-aligned tekst */
.vaerk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vaerk-ramme-wrapper {
    position: relative;
    overflow: hidden;
    padding: 5px;
    border: 1px solid #ddd;
    background: white;
    margin-bottom: 10px;
    display: block;
    /* flex-grow: 1; <- FJERNET: gjorde rammen "kolonne-bundet" i stedet for billed-bundet */
}

.vaerk-info {
    margin-top: auto; /* Skubber info-teksten til bunden */
    padding-top: 12px;
}

.vaerk-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vaerk-info h5 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.vaerk-price-text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #667eea;
}

.vaerk-ramme img {
    width: 100%;
    height: auto;
    max-width: 100% !important;
    display: block;
}

/* ========================================
   LIGHTBOX HOVER-EFFEKT
======================================== */

.vaerk-ramme-wrapper a {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
    position: relative;
}

.vaerk-ramme-wrapper a:hover .vaerk-ramme {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vaerk-ramme-wrapper a:hover .vaerk-ramme img {
    opacity: 0.95;
}

/* GLightbox custom styling */
.gslide-description {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    max-width: 600px !important;
    margin: 20px auto !important;
}

.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.85) !important;
    color: white !important;
}

/* Status-badge (solgt/reserveret) - EN samlet definition */
.status-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none; /* Så klik går igennem til linket */
}

.status-badge.solgt {
    background: rgba(231, 76, 60, 0.9);
}

.status-badge.reserveret {
    background: rgba(243, 156, 18, 0.9);
}

/* Tablet & Mobil responsivitet - VAERK-GRID */
@media (max-width: 1024px) {
    .vaerk-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .vaerk-grid { grid-template-columns: 1fr !important; }
}

/* Galleri Card Styling */
.galleri-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.galleri-info-text {
    flex: 1;
    padding-right: 15px;
}

.galleri-miniature {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f8f9fa;
}

.galleri-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-se-galleri {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-top: 8px;
    display: inline-block;
}

.galleri-card:hover .galleri-miniature {
    border-color: #667eea;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* ========================================
   TILBAGE TIL PROFIL KNAP
======================================== */

.btn-tilbage-profil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
}

.btn-tilbage-profil:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    color: white !important;
}

.btn-tilbage-profil svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-tilbage-profil:hover svg {
    transform: translateX(-4px);
}

@media (max-width: 480px) {
    .btn-tilbage-profil {
        padding: 10px 18px;
        font-size: 14px;
    }
    .btn-tilbage-profil svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   GLIGHTBOX NAVIGATION FIX
======================================== */

.glightbox-container .gslide-description {
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem;
}

.glightbox-container .gnext,
.glightbox-container .gprev {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.glightbox-container .gprev { left: 20px; }
.glightbox-container .gnext { right: 20px; }

.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    background: rgba(102, 126, 234, 0.9);
}

.glightbox-container .gnext svg,
.glightbox-container .gprev svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.glightbox-container .gnext:hover svg,
.glightbox-container .gprev:hover svg {
    stroke: white;
}

.glightbox-container .gclose {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s;
}

.glightbox-container .gclose:hover {
    background: rgba(231, 76, 60, 0.9);
}

.glightbox-container .gclose svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.glightbox-container .gclose:hover svg {
    stroke: white;
}

@media (max-width: 768px) {
    .glightbox-container .gnext,
    .glightbox-container .gprev {
        width: 40px;
        height: 40px;
    }
    .glightbox-container .gprev { left: 10px; }
    .glightbox-container .gnext { right: 10px; }
}

/* ========================================
   GLIGHTBOX BESKRIVELSE VED SIDEN AF BILLEDE
======================================== */

.status-badge::before,
.status-badge::after {
    content: none !important;
    display: none !important;
}

/* Desktop: Side-by-side layout */
@media (min-width: 769px) {
/* ========================================
   GLIGHTBOX - RENT SIMPELT LAYOUT
   Ingen side-by-side, ingen sort kasse
======================================== */

/* Skjul beskrivelsespanel helt - vi bruger INFO-badge i stedet */
.glightbox-container .gslide-description {
    display: none !important;
}

/* Billedet får fuld plads */
.glightbox-container .gslide-media {
    max-width: 100% !important;
}

/* Mobil - samme */
@media (max-width: 768px) {
    .glightbox-container .gslide-description {
        display: none !important;
    }
}


    .glightbox-container .gslide-media {
        max-width: calc(100% - 350px) !important;
    }
}

.lightbox-info h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.lightbox-meta {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.lightbox-pris {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #667eea;
    font-weight: 700;
}

.lightbox-beskrivelse {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* Mobil: Lodret layout */
@media (max-width: 768px) {
    .glightbox-container .gslide-description {
        position: relative;
        width: 100%;
        max-height: 40vh;
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        overflow-y: auto;
        border-top: 3px solid #667eea;
        margin-top: 10px;
    }

    .lightbox-info h3 { font-size: 18px; }
    .lightbox-pris { font-size: 16px; }
    .lightbox-beskrivelse { font-size: 14px; }
}

/* ========================================
   INFO-BADGE & BESKRIVELSE OVERLAY
======================================== */

.vaerk-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.vaerk-info-header h4 {
    margin: 0;
    flex: 1;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.info-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.info-badge svg {
    flex-shrink: 0;
}

/* Beskrivelse overlay - KUN OVER BILLEDET */
.vaerk-beskrivelse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.vaerk-beskrivelse-overlay.aktiv {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.beskrivelse-indhold {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-height: 100%;
    overflow-y: auto;
}

/* Desktop: Vis ved hover over badge */
@media (min-width: 769px) {
    .info-badge:hover + .vaerk-ramme-wrapper .vaerk-beskrivelse-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobil: Klik-baseret toggle */
@media (max-width: 768px) {
    .info-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========================================
   PREVIEW BANNER (kun for kunstner)
======================================== */

.preview-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.preview-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.preview-banner-content > div {
    flex: 1;
}

.preview-banner strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.preview-banner p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.btn-tilbage-dashboard {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-tilbage-dashboard:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .preview-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .btn-tilbage-dashboard {
        width: 100%;
        display: block;
    }
}
/* ========================================
   SCROLL TIL TOP KNAP
======================================== */
.kunstmekka-scroll-top {
    position: fixed;
    bottom: 110px; /* <--- HER! Ændret fra 30px til 110px */
    right: 48px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.kunstmekka-scroll-top.vis {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kunstmekka-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Lidt mindre knap på mobil og rykket lidt ind og op */
@media (max-width: 768px) {
    .kunstmekka-scroll-top {
        bottom: 100px; /* <--- HER! Ændret fra 20px til 100px (så den heller ikke rammer Dark Mode på mobil) */
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

