/* INIT DEFAULT VALUES */
#op-ps-plugin-wrapper h1,
#op-ps-plugin-wrapper h2,
#op-ps-plugin-wrapper h3,
#op-ps-plugin-wrapper h4,
#op-ps-plugin-wrapper h5,
#op-ps-plugin-wrapper h6,
#op-ps-plugin-wrapper p,
#op-ps-plugin-wrapper ul,
#op-ps-plugin-wrapper ol,
#op-ps-plugin-wrapper li,
#op-ps-plugin-wrapper a,
#op-ps-plugin-wrapper img,
#op-ps-plugin-wrapper button,
#op-ps-plugin-wrapper input,
#op-ps-plugin-wrapper select,
#op-ps-plugin-wrapper textarea,
#op-ps-plugin-wrapper video,
#op-ps-plugin-wrapper iframe {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;

    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: normal;
    text-decoration: none;

    vertical-align: baseline;
    max-width: 100%;
    height: auto;

    outline: none;
    background-color: transparent;
    resize: none;

    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    will-change: auto !important;
    isolation: auto !important;
}

#op-ps-plugin-wrapper ul,
#op-ps-plugin-wrapper ol {
    list-style: none;
}

#op-ps-plugin-wrapper img,
#op-ps-plugin-wrapper video,
#op-ps-plugin-wrapper iframe {
    display: block;
}

#op-ps-plugin-wrapper select {
    appearance: none;
    outline: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

#op-ps-plugin-wrapper h1 { font-size: 2.5em; }
#op-ps-plugin-wrapper h2 { font-size: 2em; }
#op-ps-plugin-wrapper h3 { font-size: 1.75em; }
#op-ps-plugin-wrapper h4 { font-size: 1.5em; }
#op-ps-plugin-wrapper h5 { font-size: 1.25em; }
#op-ps-plugin-wrapper h6 { font-size: 1em; }

#op-ps-plugin-wrapper button {
    cursor: pointer;
    background-color: #eee;
    color: #333;
    padding: 0.5em 1em;
    border-radius: 3px;
    border: none;
    outline: none;
}

#op-ps-plugin-wrapper .card-socialwall {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    will-change: auto !important;
    isolation: auto !important;
    z-index: auto !important;
    overflow: visible !important;

    color: rgb(34, 34, 34);
    margin: 0 auto 20px;
    position: relative;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

/* STYLES */
#op-ps-plugin-wrapper {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
}

#op-ps-plugin-wrapper.social-wall-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px;
    box-sizing: border-box;
    align-items: stretch;
}

/* Standard (Mobile): 1 Spalte */
#op-ps-plugin-wrapper .social-wall-col {
    flex-basis: 100%; /* Nimmt 100% der Breite ein */
    max-width: 100%; /* Sicherheit für max-width */
    /* Für 3 Spalten (2 Gaps): (100% - 2 * gap) / 3 */
    /* Beispiel: (100% - 20px) / 3 => calc((100% - 20px) / 3) */
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    padding: 5px;
    box-sizing: border-box;
}

@media only screen and (min-width: 768px) {
    #op-ps-plugin-wrapper .social-wall-col {
        flex-basis: calc(50% - (1 * 10px / 2)); /* Für 2 Spalten und 10px Gap */
        max-width: calc(50% - (1 * 10px / 2)); /* Sicherheit für max-width */
    }
}

@media only screen and (min-width: 1200px) {
    #op-ps-plugin-wrapper.social-wall-grid {
        width: 100%;
        display: flex;
    }
    #op-ps-plugin-wrapper .social-wall-col {
        flex-basis: calc(33.333% - (2 * 10px / 3));
        max-width: calc(33.333% - (2 * 10px / 3));
    }
}

#op-ps-plugin-wrapper .social-wall-img-wrapper {
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
}

#op-ps-plugin-wrapper .social-wall-img-wrapper img.card-img-top {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#op-ps-plugin-wrapper .social-wall-img-wrapper iframe.card-img-top {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#op-ps-plugin-wrapper .social-wall-img-wrapper video.card-img-top {
    display: block;
    max-width: 100%;
    height: auto;
}

#op-ps-plugin-wrapper .social-footer-category-wrapper {
    width: auto;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#op-ps-plugin-wrapper .socialwall-card-body {
    margin: 10px;
    text-align: center;
    flex:1;
    font-size: 1em;
    line-height: 1.4;
    color: #333;
}

#op-ps-plugin-wrapper .socialwall-card-text {
    font-size: 1em;
    line-height: 1.2em;
    margin: 15px 5px 15px 5px;
    color: #555;
}

#op-ps-plugin-wrapper .socialwall-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

#op-ps-plugin-wrapper .socialwall-category-img {
    position: relative;
    height: 24px;
    width: auto;
}

#op-ps-plugin-wrapper .socialwall-sociallinks {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#op-ps-plugin-wrapper .socialwall-date-card {
    flex: 0 0 auto;
    text-align: left;
    padding: 0 5px;
    white-space: nowrap;
}
#op-ps-plugin-wrapper .socialwall-date-card span {
    font-size: 0.8em;
    color: #777;
}

#op-ps-plugin-wrapper .socialwall-footer > .social-wall-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 5px 0 10px 0;
}

#op-ps-plugin-wrapper .custom-select-wrapper {
    position: relative;
    width: 100%;
    min-width: 100px;
    max-width: 150px;
}

#op-ps-plugin-wrapper .share_button_wrapper {
    padding: 5px 0 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
    margin-right: 0;
}

#op-ps-plugin-wrapper .share_button {
    flex: 1;
    margin-right: 2px;
    padding: 10px 15px;
    font-size: 0.9em;
    text-align: center;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /
}

#op-ps-plugin-wrapper .download_button {
    flex: 0 0 auto;
    width: 40px;
    padding: 10px;
    margin-left: 2px;
    color: white;
    font-size: 1em;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

#op-ps-plugin-wrapper .download_button i {
    font-size: 1em;
    display: inline-block;
    vertical-align: middle;
}

#op-ps-plugin-wrapper #notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

#op-ps-plugin-wrapper .notification {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: auto;
}

#op-ps-plugin-wrapper .notification.initial-hidden {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: none !important;
}

#op-ps-plugin-wrapper .notification.show {
    opacity: 1;
    transform: translateY(0);
}

#op-ps-plugin-wrapper .custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-color: #f8f8f8;
    color: #333;
    min-width: 100px;
}

#op-ps-plugin-wrapper .selected-option {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#op-ps-plugin-wrapper .selected-option i {
    margin-right: 8px;
    font-size: 1em;
}

#op-ps-plugin-wrapper .arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 10px;
}

#op-ps-plugin-wrapper .custom-select.open .arrow-down {
    border-top-color: currentColor;
}

#op-ps-plugin-wrapper .options {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 99999 !important;
}

#op-ps-plugin-wrapper .options.open {
    position: absolute;
    display: block;
    z-index: 1000;
}

#op-ps-plugin-wrapper .options li {
    position: relative;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: inherit;
}

#op-ps-plugin-wrapper .options li i {
    margin-right: 10px;
    font-size: 1.2em;
}

#op-ps-plugin-wrapper .options li:hover {
    background-color: #f0f0f0;
}

#op-ps-plugin-wrapper .hidden {
    display: none !important;
}