/*hiding header issues from wordpress. i hope.*/
.site-title,
.site-description {
    display: none !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

/* Background Styles */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.day-bg {
    opacity: 1;
}

.night-bg {
    opacity: 0;
}


.night-theme .day-bg {
    opacity: 0;
}

.night-theme .night-bg {
    opacity: 1;
}

/* Logo */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Day/Night Theme Styles */
.day-theme .nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.night-theme .nav-btn {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Bottom Left Buttons (now with images) */
.fishing-btn {
  content: url("/wp-content/mothsan-theme-2/static/buttons/fishing.png");
}

.bucket-btn {
  content: url("/wp-content/mothsan-theme-2/static/buttons/bucket.png");
}

/* when theme is turned to night */
.night-theme .fishing-btn {
  content: url("/wp-content/mothsan-theme-2/static/buttons/fishing-night.png");
}

.night-theme .bucket-btn {
  content: url("/wp-content/mothsan-theme-2/static/buttons/bucket-night.png");
}

/* for both of the buttons */
.custom-btn {
  position: absolute;
  cursor: pointer;
  width: auto;   /* Bildgröße durch hochgeladenes PNG steuern */
  max-width: 200px; /* optional, damit sie nicht riesig werden */
  height: auto;
  z-index: 1000;
}



/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.night-icon {
    display: none;
}

.night-theme .day-icon {
    display: none;
}

.night-theme .night-icon {
    display: block;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#music-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

#music-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

#music-toggle-btn.playing {
    background: rgba(76, 175, 80, 0.3);
}

/* Window System */
.window-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.window {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: all;
    max-height: 60vh;      /* Limits window height to 60% of viewport */
    overflow-y: auto;      /* Enables scrolling inside the window */
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 9999;
}

.night-theme .window {
    background: rgba(30, 30, 30, 0.95);
    color: white;
}

.window-header {
    background: rgba(240, 240, 240, 0.9);
    padding: 10px 15px;
    height: 36px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.night-theme .window-header {
    background: rgba(50, 50, 50, 0.9);
}

.window-title {
    font-weight: 600;
    font-size: 14px;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.window-controls button {
    background: #ffe066;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    margin-left: 4px;
}

.window-controls button.close {
    background: #ff6b6b;
    color: #fff;
}

.window-controls button.minimize {
    background: #ffe066;
    color: #333;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.window.minimized {
    width: 220px;
    height: 36px;
    overflow: hidden;
    opacity: 1;
    position: absolute;
    right: 20px;
    left: auto;
    top: calc(80px + var(--minimized-index, 0) * 44px); /* 80px leaves space below nav buttons */
    border-radius: 8px;
    background: #e3e3f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    z-index: 5;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.window.minimized .window-content {
    display: none;
}

.window.minimized .window-header {
    border-radius: 8px;
    width: 100%;
    display: flex;
    visibility: visible !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    height: 36px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    pointer-events: all;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.night-theme .modal-content {
    background: #2d2d2d;
    color: white;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.night-theme .modal-header {
    border-bottom-color: #444;
}

.modal-body {
    padding: 20px;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.night-theme .chat-messages {
    border-color: #444;
    background: rgba(0, 0, 0, 0.2);
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.night-theme .message {
    background: rgba(255, 255, 255, 0.1);
}

.message-author {
    font-weight: 600;
    color: #007bff;
    font-size: 12px;
}

.night-theme .message-author {
    color: #4dabf7;
}

.message-text {
    margin-top: 4px;
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.night-theme .message-time {
    color: #aaa;
}

.chat-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input input,
.chat-input textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.night-theme .chat-input input,
.night-theme .chat-input textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
    color: white;
}

.chat-input button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.chat-input button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-btn img {
        width: 30px;
        height: 30px;
    }
    
    .window {
        min-width: 300px;
        min-height: 250px;
    }
    
    .bottom-left-buttons {
        bottom: 20px;
        left: 20px;
    }
    
    .special-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* WordPress Integration Styles */
.wp-content .window-content {
    /* Ensure WordPress content displays properly in windows */
    line-height: 1.6;
}


/* Blog System Styles */
.blog-container {
    max-width: 100%;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.night-theme .blog-header {
    border-bottom-color: #444;
}

.blog-header h2 {
    margin: 0;
    color: #333;
}

.night-theme .blog-header h2 {
    color: white;
}

.add-post-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.add-post-btn:hover {
    background: #0056b3;
}

.welcome-message {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.night-theme .welcome-message {
    background: rgba(255, 255, 255, 0.1);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease;
}

.night-theme .blog-post {
    background: rgba(255, 255, 255, 0.1);
}

.blog-post:hover {
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-title {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.night-theme .post-title {
    color: white;
}

.post-date {
    color: #666;
    font-size: 12px;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
}

.night-theme .post-date {
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
}

.post-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-content {
    line-height: 1.6;
    margin: 15px 0;
    color: #333;
}

.night-theme .post-content {
    color: white;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Social Media Page Styles */
.social-container {
    max-width: 100%;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.social-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.night-theme .social-category {
    background: rgba(255, 255, 255, 0.1);
}

.social-category:hover {
    transform: translateY(-2px);
}

.social-category h3 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.night-theme .social-category h3 {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.05);
}

.social-category p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

.night-theme .social-category p {
    color: #aaa;
}

.contact-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.night-theme .contact-info {
    background: rgba(0, 123, 255, 0.1);
}

.contact-info h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.night-theme .contact-info h3 {
    color: white;
}

.commission-types {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.commission-type {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.night-theme .commission-type {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.commissions-img-btn {
    margin-top: 20px; /* Adds 20px space above the button */
}

.commissions-link, .commissions-img-btn img:hover {
    filter: brightness(1.05);
    transform: scale(1.05);
    transition: 0.2s;
}

/* Image Modal Styles */
.image-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.close-image-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-image-modal:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* WordPress Admin Integration Styles */
.wordpress-admin-note {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    color: #0056b3;
    border-left: 3px solid #007bff;
}

.night-theme .wordpress-admin-note {
    background: rgba(0, 123, 255, 0.1);
    color: #4dabf7;
    border-left-color: #4dabf7;
}

.wordpress-admin-link {
    margin-top: 20px;
    text-align: center;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.admin-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.night-theme .admin-btn {
    background: #4dabf7;
    box-shadow: 0 2px 8px rgba(77, 171, 247, 0.3);
}

.night-theme .admin-btn:hover {
    background: #3b8fd9;
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.4);
}

/*Post List styles*/
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-list-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.post-list-item:last-child {
    border-bottom: none;
}
.post-list-item h3 {
    margin: 0 0 4px 0;
}
.post-date {
    font-size: 0.9em;
    color: #ff98a1;
    margin-bottom: 6px;
}
.read-more {
    display: inline-block;
    margin-top: 6px;
    color: #ff6f1c;
    text-decoration: underline;
}

/*Post content style*/

.single-post-container {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    color: #36323a;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow-y: auto;
}

body {
    overflow: auto !important;
}
.single-post-container h1 {
    margin-top: 0;
}
.single-post-container .post-date {
    color: #ff98a1;
    font-size: 0.95em;
    margin-bottom: 18px;
}
.single-post-container .post-content {
    font-size: 1.1em;
    line-height: 1.7;
}