/* 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 .card-socialwall {
    flex-basis: 100%;
    max-width: 100%;
    flex-grow: 1;
    flex-shrink: 1;
}

#op-ps-plugin-wrapper .socialwall-footer-elements-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 5px 0 10px 0;
}

@media only screen and (max-width: 434px) {
    #op-ps-plugin-wrapper .socialwall-footer-elements-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 5px 0 10px 0;
        box-sizing: border-box;
    }

    #op-ps-plugin-wrapper .socialwall-footer-category-wrapper {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    #op-ps-plugin-wrapper .socialwall-date-card {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: center;
        align-self: center;
        text-align: right;
        margin: 0;
    }

    #op-ps-plugin-wrapper .socialwall-sociallinks {
        width: 100%;
        grid-column: 1 / span 2;
        grid-row: 2 / 3;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 5px;
        padding: 0;
    }

    #op-ps-plugin-wrapper .socialwall-footer-elements-grid > div {
        flex-basis: auto;
        width: auto;
        max-width: none;
        flex-grow: 0;
        flex-shrink: 0;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        text-align: left;
        min-width: 0;
    }

    #op-ps-plugin-wrapper .custom-select-wrapper {
        width: 100%;
        max-width: unset !important;
        min-width: unset;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        flex-grow: 1;
        flex-shrink: 1;
    }

    #op-ps-plugin-wrapper .custom-select {
        position: relative;
        padding: 10px 15px;
        font-size: 1em;
        box-sizing: border-box;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }
}

@media only screen and (min-width: 768px) {
    #op-ps-plugin-wrapper .card-socialwall {
        flex-basis: calc(50% - 5px); /* Für 2 Spalten und 10px Gap */
        max-width: calc(50% - 5px);
    }
}

@media only screen and (min-width: 1200px) {
    #op-ps-plugin-wrapper .card-socialwall {
        flex-basis: calc(33.333% - 6.67px);
        max-width: calc(33.333% - 6.67px);
    }
}

#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: center;
    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;
    font-size: 18px;
}

#op-ps-plugin-wrapper .socialwall-date-card span {
    font-size: 0.8em;
    color: #777;
}

#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: 135px;
}

#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;
}

/* Featured Post Design */
#op-ps-plugin-wrapper .card-socialwall.is-featured {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    border: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0 0 20px 0;
}

@media only screen and (max-width: 767px) {
    #op-ps-plugin-wrapper .card-socialwall.is-featured {
        flex: 0 0 100%;
    }
}

#op-ps-plugin-wrapper .featured-content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-sizing: border-box;
}

#op-ps-plugin-wrapper .featured-image-col {
    flex: 0 0 calc(62% - 10px);
    max-width: calc(62% - 10px);
}

#op-ps-plugin-wrapper .featured-text-col {
    flex: 0 0 calc(38% - 10px);
    max-width: calc(38% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#op-ps-plugin-wrapper .featured-text-col .socialwall-card-body {
    margin: 0;
    padding: 0;
    text-align: left;
}

#op-ps-plugin-wrapper .featured-text-col .socialwall-card-text {
    margin: 15px 0;
}

#op-ps-plugin-wrapper .featured-text-col .socialwall-footer {
    padding: 10px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#op-ps-plugin-wrapper .featured-text-col .socialwall-footer-elements-grid {
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    #op-ps-plugin-wrapper .card-socialwall.is-featured {
        flex-direction: column;
        flex-wrap: wrap;
    }

    #op-ps-plugin-wrapper .featured-content-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border: 0;
    }

    #op-ps-plugin-wrapper .featured-image-col,
    #op-ps-plugin-wrapper .featured-text-col {
        flex: 100%;
        max-width: 100%;
        padding: 10px 15px;
    }
}

@media only screen and (min-width: 768px) {
    #op-ps-plugin-wrapper .card-socialwall:not(.is-featured) {
        flex-basis: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media only screen and (min-width: 1200px) {
    #op-ps-plugin-wrapper .card-socialwall:not(.is-featured) {
        flex-basis: calc(33.333% - 6.67px);
        max-width: calc(33.333% - 6.67px);
    }
}