/*
Theme Name: 120w
Description: Modern, responsive WordPress theme for 120w.nl - A 15-year-old theme modernization project
Author: 120w Team
Version: 2.0
Text Domain: 120w
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive, clean, modern, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Modern, clean design */
body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

/* Modern layout with proper sidebar positioning */
.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

 #sidebar {
     width: 260px;
     flex-shrink: 0;
     font-size: 13px;
     line-height: 1.4;
     background-color: #ffffff;
     border-radius: 6px;
     padding: 16px;
     order: 1;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }

  #entries {
      flex: 1;
      order: 2;
      min-width: 0; /* Prevent flex item from overflowing */
  }

#sidebarleft {
    width: 100%;
}

#sidebarright {
    width: 100%;
}

#footer {
    width: 100%;
    clear: both;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Modern post styling */
.post {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
    margin-top: -10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.post:hover {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}

.post h3 {
    margin-top: 0;
    color: #495057;
    font-size: 1.25em;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
}

.post h3 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post h3 a:hover {
    color: #0056b3;
}

a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a:link img {
    border: none;
    border-radius: 4px;
}

ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 0;
}

li.linkcat {
    list-style-type: none;
}

img {
    border: none;
}

.imgleft {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}

.imgright {
    float: right;
    margin-left: 10px;
    margin-bottom: 10px;
}

img.frame {
    padding: 2px;
    border: 1px solid #DEE4E5;
}

/* Modern typography */
h1 {
    font-size: 2.2em;
    line-height: 1.3;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: -0.02em;
}

.title {
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

h3 {
    font-weight: 600;
    font-size: 1.3em;
    margin-top: 25px;
    color: #495057;
    letter-spacing: -0.01em;
}

.post h3 {
    border-bottom: none;
    margin-top: 0;
}

/* Modern blockquotes and highlights */
blockquote {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #495057;
    font-size: 0.95em;
}

.comments_tiny {
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9em;
}

.alt {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.commentlist {
    margin-top: 0;
}

.commentlist li {
    margin: 5px 0 0;
}

.commentlist p {
    margin: 10px 5px 10px 0;
}

#commentform p {
    margin: 5px 0;
}

.nocomments {
    text-align: center;
    margin: 0;
    padding: 0;
}

.commentmetadata {
    margin: 0;
    display: block;
}

/* Modern comment styling */
li.comment {
    font-weight: 500;
    padding: 12px 16px;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #28a745;
}

.commentlist p {
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    margin: 0;
}

#commentform {
    margin-top: 30px;
}

.commentmetadata {
    font-weight: 400;
}

/* Modern sidebar styling */
#sidebar ul ol li,
#sidebar ul ul li,
.nocomments,
.postmetadata,
small,
strike {
    color: #6c757d;
}

#sidebar h3 {
    color: #495057;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #007bff;
}

#sidebar ul {
    padding-left: 0;
    margin-bottom: 15px;
}

#sidebar li {
    margin-bottom: 4px;
    padding: 6px 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border-left: 2px solid #007bff;
    font-size: 12px;
}

.content {
    margin-bottom: 25px;
    padding-left: 5px;
    font-weight: 400;
}

/* Modern form styling */
.commentbox {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.commentbox:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Modern button styling */
input[type="submit"],
button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover,
button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Modern input styling */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Modern utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 4px; }
.shadow { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

#wpstats {
    display: none;
}

#topright {
    position: fixed;
    right: 20px;
    top: 20px;
    display: block;
    height: 60px;
    width: 200px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    line-height: 60px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

#topright:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

img.wpp-thumbnail {
    border: none;
}

.post-stats {
    font-size: 9px;
    font-weight: 700;
}

.wpp-author {
    font-style: italic;
}

.byadministrator {
    background: #FCFBD7 !important;
}

.bypostauthor {
    background: #E3F4FF !important;
}

.byredacteur {
    background: #FCFBD7 !important;
}

.byuser {
    background: #E6F8E0;
}

table.diff {
    empty-cells: hide;
    width: 100%;
}

table.diff th {
    text-align: left;
}

table.diff .diff-deletedline {
    background-color: #fdd;
    width: 50%;
}

table.diff .diff-deletedline del {
    background-color: #f99;
    text-decoration: none;
}

table.diff .diff-addedline {
    background-color: #dfd;
    width: 50%;
}

table.diff .diff-addedline ins {
    background-color: #9f9;
    text-decoration: none;
}

table.diff .diff-context {
    display: none;
    visibility: hidden;
}

.revision-header {
    background-color: #ffffe0;
    border: 1px solid #e6db55;
    padding: 10px;
}

div.revision-header {
    padding: 0 10px;
}

#wp-social-login-connect-with {
    font-weight: bold;
}

#wp-social-login-connect-options {
    padding: 10px;
}

#wp-social-login-connect-options a {
    text-decoration: none;
}

#wp-social-login-connect-options img {
    border: 0 none;
}

/* Modern responsive design */

/* Large desktop screens */
@media only screen and (min-width: 1400px) {
    #container {
        max-width: 1400px;
    }
}

/* Desktop screens */
@media only screen and (min-width: 1200px) {
    .content-wrapper {
        display: flex;
        flex-direction: row;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        overflow: hidden;
        padding: 20px;
        align-items: flex-start;
    }

    #sidebar {
        width: 260px;
        flex-shrink: 0;
        order: 1;
    }

    #entries {
        flex: 1;
        order: 2;
        min-width: 0;
    }
}

/* Tablet styles */
@media only screen and (max-width: 1199px) and (min-width: 1024px) {
    body {
        background-color: #f8f9fa;
        padding: 20px;
    }

    #container {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

      .content-wrapper {
          flex-direction: column;
          gap: 20px;
          padding: 20px;
      }

      #entries {
          max-width: 100%;
          order: 2;
      }

      #sidebar {
          width: 100%;
          order: 1;
          background-color: #ffffff;
          border: 1px solid #e9ecef;
      }

    .post {
        margin-bottom: 16px;
        padding: 16px;
    }

    h1 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.2em;
    }
}

/* Mobile styles */
@media only screen and (max-width: 768px) and (min-width: 481px) {
    body {
        background-color: #f8f9fa;
        padding: 15px;
        font-size: 15px;
    }
    
    #container {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    
      .content-wrapper {
          flex-direction: column;
          gap: 15px;
          padding: 15px;
      }

      #entries {
          order: 2;
      }

      #sidebar {
          width: 100%;
          order: 1;
          background-color: #ffffff;
          border: 1px solid #e9ecef;
          padding: 15px;
      }
    
    .post {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .imgleft,
    .imgright {
        max-width: 100%;
        height: auto;
        margin: 8px 0;
        float: none;
    }
}

/* Small mobile styles */
@media only screen and (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 14px;
    }
    
     .content-wrapper {
         flex-direction: column;
         padding: 10px;
     }

      #entries {
          order: 2;
      }

      #sidebar {
          width: 100%;
          order: 1;
          padding: 12px;
      }
    
    .post {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1em;
    }
}
