/**
 * Theme Name:        Tina Tema
 * Theme URI:         https://example.com/fabled-sunset
 * Description:       Custom theme for Artist portfolio websites, with frontpage shwowing latest exhistbion posts and a gallerypage with artwork-archive. Also an About page and CV.
 * Version:           1.0.0
 * Author:            Tina Wulff
 * Author URI:        https://webdev.tinawulff.dk
 * Tags:              block-patterns, full-site-editing
 * Text Domain:       tina-tema
 * Domain Path:       /assets/lang
 * Tested up to:      6.4
 * Requires at least: 6.2
 * Requires PHP:      7.4
 * License:           GNU General Public License v2.0 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 */


* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Monda', sans-serif; /* Default */
    padding: 0;
    background-color: #fafbfb;
    margin: 0 auto;
}

main {
    margin: 0;
    padding: 0 4em;
    min-height: 80vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* HEADER STYLING */
.site-header {
    margin: 0;
    padding: 1.5em 4em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    flex-shrink: 0;
}

.site-header > div {
    flex-grow: 1;
}

/* Main navigation wrapper */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation > div {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

header ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 625px;
    margin-left: 0;
}

header ul li a {
    text-decoration: none;
    color: inherit;


    font-weight: 500; /* Default */
    padding: 8px 12px; /* Default */
}

.searchform {
    margin: 0;
    margin-left: auto;
    max-width: 200px;
    flex-shrink: 0;
    }

.searchform input[type="search"] {
    max-width: 200px;
    font-family: 'Monda', sans-serif; /* Default */
}

/* Søgefelt styling styres nu af Customizer
.searchform input[type="submit"] {
    cursor: pointer;
    border-radius: 100px;
}
*/


header .site-logo {
    text-decoration: none;
}

header .site-title {
    font-family: 'Monda', sans-serif; /* Default */
    display: block;
    text-transform: uppercase;
}


 /* SLIDER */

 .slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  margin:0 auto;
  padding: 0;
  top: 0;
}

.slides-container {
  max-height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slide-title {
  font-size: 64px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  color: white;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

/* ul {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    padding-inline-start: 0 !important;
} */

.slide-arrow {
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 4rem;
  background-color: white;
  border: none;
  width: 2rem;
  font-size: 3rem;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 100ms;
}

.slide-arrow:hover,
.slide-arrow:focus {
  opacity: 1;
}

#slide-arrow-prev {
  left: 0;
  padding-left: 0.25rem;
  border-radius: 0 2rem 2rem 0;
  z-index: 10;
}

#slide-arrow-next {
  right: 0;
  padding-left: 0.75rem;
  border-radius: 2rem 0 0 2rem;
  z-index: 10;
}

.slide {
  width: 100%;
  height: 100%;
  flex: 1 0 100%;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
}


/* .slide:nth-child(1) {
  background-color: #49b293;
} */

/* .slide:nth-child(2) {
  background-color: #b03532;
}

.slide:nth-child(3) {
  background-color: #6a478f;
  margin: 0;
}

.slide:nth-child(4) {
  background-color: #da6f2b;
} */

.slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* SLIDER END */


/* FOOTER */
.site-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
}

.site-footer ul {
list-style: none;
justify-self: center;
}






/* ARCHIVE / VÆRKER OVERSIGT */
.archive-main {
    padding: 1em 0 3em;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 80vh;
}

.archive-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

/* Kategori navigation */
.artwork-category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #2c3e50;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-link:hover {
    background: #f0f0f0;
}

.category-link.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.artwork-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.artwork-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artwork-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.artwork-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-info {
    padding: 20px;
}

.artwork-info h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.artwork-meta {
    color: #7f8c8d;
    font-size: 0.95em;
}

.artwork-meta .year,
.artwork-meta .location {
    display: inline;
}

/* ORIGINAL STYLING - UDKOMMENTERET
.artwork-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.artwork-info {
    padding: 20px;
}

.artwork-info h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
}
*/

/* NY HOVER STYLING - kun billede, overlay ved hover */
.artwork-item {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.artwork-item a {
    position: relative;
    display: block;
}

.artwork-thumbnail {
    position: relative;
}

.artwork-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
    text-align: center;
}

.artwork-item:hover .artwork-info {
    opacity: 1;
}

.artwork-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.artwork-info .artwork-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
}

/* ARCHIVE / VÆRKER OVERSIGT END */


/* SINGLE ARTWORK PAGES */
.artwork {
    /* max-width: 1600px; */
    margin: 0 auto;
    padding: 0 4em 2em;
}

.artwork-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.artwork-featured-image {
    margin: 0;
}

.artwork-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.artwork-details {
    padding: 0 20px;
}

.artwork-details h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.artwork-details .artwork-meta {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.artwork-description {
    line-height: 1.6;
    margin-top: 20px;
}

/* Gallery - masonry layout fuld bredde */
.artwork-gallery {
    margin: 60px 0 0 0;
    width: 100%;
    column-count: 3;
    column-gap: 30px;
}

.artwork-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    break-inside: avoid;
}

/* GALLERY i masonry/Pinterest-style layout hvor billederne pakker sig tæt sammen!
Med CSS columns eller Masonry layout.

Bruger CSS columns i stedet for grid. Det giver et masonry-layout hvor:

3 kolonner på desktop
Billederne beholder deres originale proportioner
Billederne pakker sig automatisk tæt sammen uden tomme mellemrum
break-inside: avoid forhindrer at et billede bliver delt mellem to kolonner */

/* Mobile menu toggle button - skjult på desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

/* Mobile menu close button - skjult på desktop */
.mobile-menu-close {
    display: none;
}

/* Responsive: Stack på mindre skærme */
@media (max-width: 768px) {
    .site-header {
        padding: 1em 2em;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        display: block;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        color: #333;
    }
    
    .mobile-menu-close:hover {
        color: #000;
    }
    
    .main-navigation > div {
        width: 100%;
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        max-width: none;
        margin: 0;
        gap: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .main-navigation ul li {
        width: 100%;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation ul li a {
        display: block;
        padding: 15px 10px;
        background: transparent;
        border-radius: 0;
    }
    
    .searchform {
        /*margin-top: 20px;*/
        margin-left: 0;
        max-width: none;
        padding-top: 20px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 10px;
    }
    
    .searchform input[type="search"] {
        max-width: none;
        width: 100%;
        flex: 1;
    }
    
    .searchform button[type="submit"] {
        flex-shrink: 0;
    }
    
    .artwork-hero {
        grid-template-columns: 1fr;
    }
    
    .artwork-gallery {
        column-count: 1;
    }
    
    .artwork-category-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .category-link {
        width: 100%;
        text-align: center;
        border-top-width: 0 !important;
    }
    
    .category-link:first-child {
        border-top-width: 2px !important;
    }
}


