/**
 * Inkora Live Block - Frontend Styles
 * Version: 1.0.0
 */
:root {
  --inkora-primary: #2398bc;
}
.inkora-live-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0px auto 20px;
    transition: all 0.3s ease;
}

/* Background Layer */
.inkora-live-block .inkora-live-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Color Overlay */
.inkora-live-block .inkora-live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.75;
    z-index: 2;
}

/* Content Layer */
.inkora-live-block .inkora-live-content {
    position: relative;
    z-index: 3;
    padding: 10px;
}

/* Dashicons Styling */
.inkora-live-block .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.inkora-live-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.inkora-live-post-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 3px;
}

.inkora-live-status .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    animation: spin 2s linear infinite;
    padding: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Styles */
.inkora-live-header {
    padding: 20px 20px 0;
    margin-bottom: 0px;
}

.inkora-live-title {
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Live Badge */
.inkora-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: live-pulse 1.5s infinite;
    background: var(--inkora-primary);
}

@keyframes live-pulse {
    0% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.9; transform: scale(1); }
}

/* Live Indicator */
.inkora-live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1s infinite;
    background-color: var(--inkora-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Posts Container */
.inkora-live-posts {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* List Layout */
.inkora-live-list .inkora-live-post {
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.inkora-live-list .inkora-live-post:last-child {
    border-bottom: none;
}

/* Grid Layout */
.inkora-live-grid .inkora-live-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.inkora-live-grid .inkora-live-post {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inkora-live-grid .inkora-live-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Compact Layout */
.inkora-live-compact .inkora-live-post {
    padding: 10px;
}

.inkora-live-compact .inkora-live-post:last-child {
    border-bottom: none;
}

.inkora-live-compact .inkora-live-post-title {
    font-size: 16px;
}

/* Post Styles */
.inkora-live-post {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.inkora-live-post:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.inkora-live-post:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.inkora-live-latest {
    background: rgba(251, 132, 19, 0.1);
    border-left: 4px solid var(--inkora-primary);
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.inkora-live-post-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.inkora-live-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inkora-live-post-title a:hover {
    color: var(--inkora-primary);
}

.inkora-live-post-excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.inkora-live-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}

.inkora-live-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inkora-live-time,
.inkora-live-category,
.inkora-live-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.inkora-live-category {
    color: var(--inkora-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Bar */
.inkora-live-status {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.inkora-live-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    background-color: var(--inkora-primary);
}

.inkora-live-status-text {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* No Posts */
.inkora-live-no-posts {
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

/* New Post Animation */
@keyframes highlight {
    0% { background-color: rgba(251, 132, 19, 0.2); }
    100% { background-color: transparent; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .inkora-live-title {
        font-size: 24px;
        flex-wrap: wrap;
    }

    .inkora-live-content {
        padding: 20px;
    }

    .inkora-live-grid .inkora-live-posts {
        grid-template-columns: 1fr;
    }

    .inkora-live-post-meta {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .inkora-live-header,
    .inkora-live-posts,
    .inkora-live-status {
        padding-left: 15px;
        padding-right: 15px;
    }

    .inkora-live-post-title {
        font-size: 16px;
    }
}