/**
 * OOI News Feed - Public CSS
 *
 * @package    Ooi_News_Feed
 */

/* ==========================================================================
   Combined Feed - 2 Column Layout
   ========================================================================== */
.ooi-feed-post-title span {
  color: #fff;
}
.ooi-feed-post-link span {
  color: #fff;
  text-transform: none;
  position: relative;
  margin-left: 24px;
}

.ooi-combined-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}
.ooi-feed-post-link span::before {
  content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJOYXZfVHJpYW5nbGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIKCSB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxMiAyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRjlDNjM2O30KPC9zdHlsZT4KPHBhdGggaWQ9IkZpbGxfMV9Db3B5XzgiIGNsYXNzPSJzdDAiIGQ9Ik05LjksNy4yTDMuMywwLjVjLTAuNi0wLjctMS43LTAuNy0yLjQsMGMwLDAsMCwwLDAsMEwwLjUsMC45Yy0wLjcsMC43LTAuNywxLjcsMCwyLjQKCWw1LjQsNS41YzAuNywwLjcsMC43LDEuNywwLDIuNGwtNS40LDUuNGMtMC43LDAuNy0wLjcsMS43LDAsMi40bDAuNCwwLjRjMC42LDAuNywxLjcsMC43LDIuNCwwYzAsMCwwLDAsMCwwbDYuNi02LjdsMS42LTEuNgoJYzAuNy0wLjcsMC43LTEuNywwLTIuNEw5LjksNy4yeiIvPgo8L3N2Zz4K");
  display: block;
  height: 1rem;
  width: 1rem;
  position: absolute;
  top: 1px;
  left: -20px;
}
/* Left column - Featured post */
.ooi-feed-left {
    flex: 0 0 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
}

/* Right column - Stacked posts */
.ooi-feed-right {
    flex: 0 0 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   Post Cards
   ========================================================================== */

.ooi-feed-post {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    overflow: hidden;
    box-sizing: border-box;
}

/* Featured post - takes full height of left column */
.ooi-feed-post-featured {
    height: 100%;
    min-height: 500px;
}

/* Stacked posts - equal height distribution */
.ooi-feed-post-stacked {
    flex: 1;
    min-height: 156px;
}

/* Gradient overlay */
.ooi-feed-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 25px;
    box-sizing: border-box;
}

/* Content container */
.ooi-feed-post-content {
    width: 100%;
    color: #ffffff;
}

/* ==========================================================================
   Typography & Elements
   ========================================================================== */

/* Meta line: Category | Date */
.ooi-feed-post-meta {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.9);
}

.ooi-feed-post-category {
    color: #4fc3f7;
}

.ooi-feed-post-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.ooi-feed-post-date {
    color: rgba(255, 255, 255, 0.8);
}

/* Title */
.ooi-feed-post-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

/* Featured post - larger title */
.ooi-feed-post-featured .ooi-feed-post-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Stacked posts - smaller title */
.ooi-feed-post-stacked .ooi-feed-post-title {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Read More link */
.ooi-feed-post-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ooi-feed-post-link:hover {
    background-color: #ffffff;
    color: #1a1a2e;
}

/* Featured post - larger button */
.ooi-feed-post-featured .ooi-feed-post-link {
    padding: 12px 30px;
    font-size: 14px;
}

/* Stacked posts - smaller button */
.ooi-feed-post-stacked .ooi-feed-post-link {
    padding: 8px 20px;
    font-size: 12px;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media screen and (max-width: 992px) {
    .ooi-feed-post-featured {
        min-height: 400px;
    }

    .ooi-feed-post-featured .ooi-feed-post-title {
        font-size: 26px;
    }

    .ooi-feed-post-stacked .ooi-feed-post-title {
        font-size: 16px;
    }

    .ooi-feed-post-overlay {
        padding: 20px;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media screen and (max-width: 768px) {
    .ooi-combined-feed {
        flex-direction: column;
        gap: 15px;
    }

    .ooi-feed-left,
    .ooi-feed-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ooi-feed-post-featured {
        min-height: 350px;
    }

    .ooi-feed-post-stacked {
        min-height: 200px;
    }

    .ooi-feed-post-featured .ooi-feed-post-title {
        font-size: 24px;
    }

    .ooi-feed-post-stacked .ooi-feed-post-title {
        font-size: 18px;
    }

    .ooi-feed-post-overlay {
        padding: 20px;
    }

    .ooi-feed-post-meta {
        font-size: 11px;
    }
}

/* ==========================================================================
   Responsive - Small Mobile
   ========================================================================== */

@media screen and (max-width: 480px) {
    .ooi-feed-post-featured {
        min-height: 300px;
    }

    .ooi-feed-post-stacked {
        min-height: 180px;
    }

    .ooi-feed-post-featured .ooi-feed-post-title {
        font-size: 20px;
    }

    .ooi-feed-post-stacked .ooi-feed-post-title {
        font-size: 16px;
    }

    .ooi-feed-post-overlay {
        padding: 15px;
    }

    .ooi-feed-post-link {
        padding: 8px 16px;
        font-size: 11px;
    }

    .ooi-feed-post-featured .ooi-feed-post-link {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Expedition Feed - Sidebar/List Layout
   ========================================================================== */

.combined-feed-posts-sidebar h2 {
    font-size: 16px;
    line-height: 24px;
    padding: 8px 0px;
    border-bottom: 1px solid #e6e6e6;
    margin: 0;
}

.combined-feed-posts-sidebar h2 a {
    color: inherit;
    text-decoration: none;
}

.combined-feed-posts-sidebar h2 a:hover {
    color: #4fc3f7;
}

/* Expedition Feed Specific Styles */
.expedition-feed-sidebar .fl-post-date {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.expedition-feed-sidebar .fl-post-text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.expedition-feed-grid .expedition-post {
    margin-bottom: 10px;
}

.combined-feed-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

/* ==========================================================================
   Legacy Styles (for backward compatibility)
   ========================================================================== */

.combined-feed-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.combined-feed-posts::after {
    content: "";
    display: table;
    clear: both;
}
