/*
Theme Name: Three.js Gallery Theme
Description: Ein spezielles Theme für die Three.js-Projekt-Galerie
Version: 1.0
Author: Custom Development
*/


/* Reset und Grundstile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter';
    line-height: 1.6;
    color: black;
    min-height: 100vh;
}

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

/* Header */
.site-header {
    
    position: sticky;
    top: 5;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: black;
    text-decoration: none;
    transform: rotate(-45deg);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.site-title a {
    text-decoration: none;
    color: black;
}

.site-description {
    color: #666;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: #667eea;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* User Login Area */
.user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn, .logout-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
}

/* Hero Section */
.hero-section {
    text-align: left;
    padding: 4rem 0;
   
    border-radius: 0px;
    margin-bottom: 3rem;
    color: black;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
  
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 ;
}

/* Gallery Styles */
.threejs-gallery {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-description {
    font-size: 1.5rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Group Items */
.group-item {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.group-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.group-thumbnail {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.group-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transition: transform 0.3s ease;*/
}

.group-item:hover .group-thumbnail img {
    /*transform: scale(1.05);*/
}

.group-item .group-thumbnail img {
    transform: none !important;
    transition: none !important;
}

.group-item:hover .group-thumbnail img {
    transform: none !important;
}

.group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group-item:hover .group-overlay {
    opacity: 1;
}

.group-info {
    padding: 1.5rem;
}

.group-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.group-description {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-count {
    color: #667eea;
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.view-group-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.group-link{
    text-decoration: none;
    color: black;
}

.view-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Project Items */
.project-item {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
   /* transition: transform 0.3s ease;*/
}

.project-item:hover .project-thumbnail img {
   /* transform: scale(1.05);*/
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background: #fff;
    color: #333;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    background: #667eea;
    color: white;
    /*transform: scale(1.05);*/
}

.project-info {
    padding: 1.5rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.template-name {
    color: #666;
    font-size: 0.8rem;
}

/* Back Navigation */
.back-to-groups {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-groups:hover {
    color: #764ba2;
}

.back-to-groups::before {
    content: '←';
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Login Form */
.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 2rem;
    max-width: 400px;
    margin: 2rem auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 0px;
    font-size: 1.5rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: rgba(60, 170, 243, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .header-content {
       
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }

    
    .threejs-gallery {
        padding: 0rem;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .login-btn,
    .logout-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .threejs-gallery {
        background: white;
        box-shadow: none;
    }
}