/* SCDev Sidebar Widgets - Main Styles */

/* Common Widget Styles */
.scdev-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.scdev-widget:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .scdev-widget {
        background: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

/* Loading Spinner */
.scdev-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: scdev-spin 0.8s linear infinite;
}

@keyframes scdev-spin {
    to { transform: rotate(360deg); }
}

/* Weather Widget */
.scdev-weather {
    text-align: center;
}

.scdev-weather-loading,
.scdev-weather-error {
    padding: 20px;
    text-align: center;
}

.scdev-weather-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.scdev-weather-temp {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.scdev-weather-desc {
    font-size: 18px;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.scdev-weather-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.scdev-weather-details {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

@media (prefers-color-scheme: dark) {
    .scdev-weather-location { color: #999; }
    .scdev-weather-details { border-top-color: #333; }
}

/* Map Widget */
.scdev-map-widget {
    padding: 0;
    overflow: hidden;
}

.scdev-map-locate-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.scdev-map-locate-btn:hover {
    background: #2980b9;
}

.scdev-map {
    height: 300px;
    width: 100%;
}

.scdev-map-placeholder,
.scdev-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .scdev-map-placeholder,
    .scdev-map-loading {
        background: #2a2a2a;
        color: #999;
    }
}

/* Clock Widget */
.scdev-clock {
    text-align: center;
}

.scdev-clock-time {
    font-size: 48px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.scdev-clock-date {
    font-size: 18px;
    margin-bottom: 5px;
}

.scdev-clock-timezone {
    font-size: 14px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .scdev-clock-timezone { color: #999; }
}

/* Social Links Widget */
.scdev-social {
    padding: 15px;
}

.scdev-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.scdev-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.scdev-social-link:hover {
    transform: scale(1.1);
    background: #2980b9;
}

.scdev-social-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Button Menu Widget */
.scdev-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scdev-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.scdev-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.scdev-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Recent Posts Widget */
.scdev-recent-posts {
    padding: 0;
    overflow: hidden;
}

/* Vertical Layout */
.scdev-recent-vertical .scdev-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scdev-recent-post-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scdev-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.scdev-post-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* 5:3 aspect ratio */
    overflow: hidden;
    background: var(--scdev-primary-color, #3498db);
}

.scdev-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scdev-recent-post-item:hover .scdev-post-image {
    transform: scale(1.05);
}

/* Placeholder for posts without featured image */
.scdev-post-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--scdev-primary-color, #3498db) 0%, 
        var(--scdev-secondary-color, #2980b9) 100%);
}

.scdev-placeholder-icon {
    opacity: 0.3;
    color: white;
}

/* Overlay with title and date */
.scdev-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: white;
    transition: background 0.3s ease;
}

.scdev-recent-post-item:hover .scdev-post-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 70%, transparent 100%);
}

.scdev-post-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scdev-post-date {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

/* Slider Layout */
.scdev-recent-slider {
    position: relative;
    padding: 0 0 40px 0; /* Space for dots */
}

.scdev-recent-slider .scdev-posts-container {
    position: relative;
    overflow: hidden;
}

.scdev-recent-slider .scdev-slide {
    display: none;
    animation: scdev-fade-in 0.5s ease;
}

.scdev-recent-slider .scdev-slide:first-child {
    display: block;
}

.scdev-recent-slider .scdev-slide.active {
    display: block;
}

@keyframes scdev-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slider Controls */
.scdev-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.scdev-slider-prev,
.scdev-slider-next {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scdev-slider-prev:hover,
.scdev-slider-next:hover {
    background: var(--scdev-primary-color, #3498db);
    transform: scale(1.1);
}

/* Slider Dots */
.scdev-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.scdev-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.scdev-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.scdev-dot.active {
    background: var(--scdev-primary-color, #3498db);
    width: 30px;
    border-radius: 5px;
}

/* Theme Color Variables (fallback to defaults) */
:root {
    --scdev-primary-color: #3498db;
    --scdev-secondary-color: #2980b9;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .scdev-post-placeholder {
        background: linear-gradient(135deg, 
            var(--scdev-primary-color, #2980b9) 0%, 
            var(--scdev-secondary-color, #1f5f8b) 100%);
    }
}

/* Video Widget */
.scdev-video {
    padding: 0;
    overflow: hidden;
}

.scdev-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.scdev-video-container iframe,
.scdev-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Audio Widget */
.scdev-audio {
    padding: 15px;
}

.scdev-audio-header {
    margin-bottom: 15px;
    position: relative;
}

.scdev-audio-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.scdev-audio-artist {
    font-size: 14px;
    color: #666;
}

.scdev-audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.scdev-live-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: scdev-pulse 1.5s ease-in-out infinite;
}

@keyframes scdev-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scdev-audio-player-wrapper {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
}

@media (prefers-color-scheme: dark) {
    .scdev-audio-player-wrapper {
        background: #2a2a2a;
    }
}

.scdev-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scdev-audio-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--scdev-primary-color, #667eea) 0%, 
        var(--scdev-secondary-color, #764ba2) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scdev-audio-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.scdev-audio-play:active {
    transform: scale(0.95);
}

.scdev-audio-play svg {
    color: white;
    fill: white;
}

.scdev-audio-element {
    display: none;
}

/* Waveform Visualization */
.scdev-audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-bottom: 10px;
}

.scdev-audio-waveform span {
    width: 3px;
    height: 8px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 3px;
    animation: scdev-wave-idle 1.5s ease-in-out infinite;
    opacity: 0.3;
}

.scdev-audio-waveform span:nth-child(1) { animation-delay: 0s; background: linear-gradient(to top, #f093fb, #f5576c); }
.scdev-audio-waveform span:nth-child(2) { animation-delay: 0.1s; background: linear-gradient(to top, #4facfe, #00f2fe); }
.scdev-audio-waveform span:nth-child(3) { animation-delay: 0.2s; background: linear-gradient(to top, #43e97b, #38f9d7); }
.scdev-audio-waveform span:nth-child(4) { animation-delay: 0.3s; background: linear-gradient(to top, #fa709a, #fee140); }
.scdev-audio-waveform span:nth-child(5) { animation-delay: 0.4s; background: linear-gradient(to top, #30cfd0, #330867); }
.scdev-audio-waveform span:nth-child(6) { animation-delay: 0.5s; background: linear-gradient(to top, #a8edea, #fed6e3); }
.scdev-audio-waveform span:nth-child(7) { animation-delay: 0.6s; background: linear-gradient(to top, #ff9a9e, #fecfef); }
.scdev-audio-waveform span:nth-child(8) { animation-delay: 0.7s; background: linear-gradient(to top, #ffecd2, #fcb69f); }
.scdev-audio-waveform span:nth-child(9) { animation-delay: 0.8s; background: linear-gradient(to top, #ff6e7f, #bfe9ff); }
.scdev-audio-waveform span:nth-child(10) { animation-delay: 0.9s; background: linear-gradient(to top, #e0c3fc, #8ec5fc); }
.scdev-audio-waveform span:nth-child(11) { animation-delay: 1s; background: linear-gradient(to top, #f093fb, #f5576c); }
.scdev-audio-waveform span:nth-child(12) { animation-delay: 1.1s; background: linear-gradient(to top, #4facfe, #00f2fe); }
.scdev-audio-waveform span:nth-child(13) { animation-delay: 1.2s; background: linear-gradient(to top, #43e97b, #38f9d7); }
.scdev-audio-waveform span:nth-child(14) { animation-delay: 1.3s; background: linear-gradient(to top, #fa709a, #fee140); }
.scdev-audio-waveform span:nth-child(15) { animation-delay: 1.4s; background: linear-gradient(to top, #30cfd0, #330867); }
.scdev-audio-waveform span:nth-child(16) { animation-delay: 0.2s; background: linear-gradient(to top, #a8edea, #fed6e3); }
.scdev-audio-waveform span:nth-child(17) { animation-delay: 0.4s; background: linear-gradient(to top, #ff9a9e, #fecfef); }
.scdev-audio-waveform span:nth-child(18) { animation-delay: 0.6s; background: linear-gradient(to top, #ffecd2, #fcb69f); }
.scdev-audio-waveform span:nth-child(19) { animation-delay: 0.8s; background: linear-gradient(to top, #ff6e7f, #bfe9ff); }
.scdev-audio-waveform span:nth-child(20) { animation-delay: 1s; background: linear-gradient(to top, #e0c3fc, #8ec5fc); }

@keyframes scdev-wave-idle {
    0%, 100% { height: 8px; }
    50% { height: 16px; }
}

/* Active waveform when playing */
.scdev-audio.playing .scdev-audio-waveform span {
    animation: scdev-wave-active 0.8s ease-in-out infinite;
    opacity: 1;
}

@keyframes scdev-wave-active {
    0%, 100% { height: 12px; }
    50% { height: 32px; }
}

/* Progress Bar */
.scdev-audio-progress {
    flex: 1;
}

.scdev-audio-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.scdev-audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--scdev-primary-color, #667eea) 0%, 
        var(--scdev-secondary-color, #764ba2) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.scdev-audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 6px;
}

/* Stream Visualizer */
.scdev-audio-stream-info {
    flex: 1;
    text-align: center;
}

.scdev-stream-status {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.scdev-stream-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
}

.scdev-stream-visualizer span {
    width: 4px;
    height: 10px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 2px;
    animation: scdev-stream-wave 1s ease-in-out infinite;
}

.scdev-stream-visualizer span:nth-child(1) { animation-delay: 0s; background: linear-gradient(to top, #f093fb, #f5576c); }
.scdev-stream-visualizer span:nth-child(2) { animation-delay: 0.1s; background: linear-gradient(to top, #4facfe, #00f2fe); }
.scdev-stream-visualizer span:nth-child(3) { animation-delay: 0.2s; background: linear-gradient(to top, #43e97b, #38f9d7); }
.scdev-stream-visualizer span:nth-child(4) { animation-delay: 0.3s; background: linear-gradient(to top, #fa709a, #fee140); }
.scdev-stream-visualizer span:nth-child(5) { animation-delay: 0.4s; background: linear-gradient(to top, #30cfd0, #330867); }
.scdev-stream-visualizer span:nth-child(6) { animation-delay: 0.5s; background: linear-gradient(to top, #a8edea, #fed6e3); }
.scdev-stream-visualizer span:nth-child(7) { animation-delay: 0.6s; background: linear-gradient(to top, #ff9a9e, #fecfef); }
.scdev-stream-visualizer span:nth-child(8) { animation-delay: 0.7s; background: linear-gradient(to top, #ffecd2, #fcb69f); }
.scdev-stream-visualizer span:nth-child(9) { animation-delay: 0.8s; background: linear-gradient(to top, #ff6e7f, #bfe9ff); }
.scdev-stream-visualizer span:nth-child(10) { animation-delay: 0.9s; background: linear-gradient(to top, #e0c3fc, #8ec5fc); }

@keyframes scdev-stream-wave {
    0%, 100% { height: 10px; }
    50% { height: 35px; }
}

/* Volume Control */
.scdev-audio-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scdev-audio-mute {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.scdev-audio-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    outline: none;
}

.scdev-audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--scdev-primary-color, #667eea);
    border-radius: 50%;
    cursor: pointer;
}

.scdev-audio-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--scdev-primary-color, #667eea);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.scdev-audio-footer {
    margin-top: 10px;
    text-align: center;
    color: #999;
    font-size: 11px;
}

@media (prefers-color-scheme: dark) {
    .scdev-audio-player-wrapper {
        background: #2a2a2a;
    }
    .scdev-audio-artist { color: #999; }
    .scdev-audio-time { color: #999; }
    .scdev-stream-status { color: #999; }
    .scdev-audio-mute { color: #999; }
}

/* Image Widget */
.scdev-image {
    padding: 0;
    overflow: hidden;
}

.scdev-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scdev-image a {
    display: block;
    cursor: zoom-in;
}

.scdev-image-caption {
    padding: 12px 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
    background: #f9f9f9;
}

@media (prefers-color-scheme: dark) {
    .scdev-image-caption {
        background: #2a2a2a;
        color: #999;
    }
}

/* Lightbox */
.scdev-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scdev-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.scdev-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.scdev-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.scdev-lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

/* HTML Widget */
.scdev-html {
    padding: 15px;
}

/* Categories Widget */
.scdev-categories {
    padding: 15px;
}

.scdev-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scdev-category-item {
    margin-bottom: 8px;
}

.scdev-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.scdev-category-link:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

.scdev-category-name {
    font-weight: 500;
}

.scdev-category-count {
    font-size: 12px;
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    .scdev-category-link {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    .scdev-category-link:hover {
        background: #3498db;
        color: white;
    }
}

/* Posts by Category Widget */
.scdev-posts-by-category {
    padding: 15px;
}

.scdev-category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.scdev-filter-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #333;
}

.scdev-filter-btn:hover {
    background: #e0e0e0;
}

.scdev-filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.scdev-posts-grid {
    display: grid;
    gap: 20px;
}

.scdev-layout-list .scdev-posts-grid {
    grid-template-columns: 1fr;
}

.scdev-layout-grid .scdev-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.scdev-layout-grid[data-columns="2"] .scdev-posts-grid {
    grid-template-columns: repeat(2, 1fr);
}

.scdev-layout-grid[data-columns="3"] .scdev-posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

.scdev-layout-grid[data-columns="4"] .scdev-posts-grid {
    grid-template-columns: repeat(4, 1fr);
}

.scdev-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scdev-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scdev-post-card-thumbnail {
    width: 100%;
    overflow: hidden;
}

.scdev-post-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scdev-post-card:hover .scdev-post-card-thumbnail img {
    transform: scale(1.05);
}

.scdev-post-card-content {
    padding: 15px;
}

.scdev-post-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.4;
}

.scdev-post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scdev-post-card-title a:hover {
    color: #3498db;
}

.scdev-post-card-date {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.scdev-post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.scdev-posts-grid.scdev-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .scdev-category-filter {
        border-bottom-color: #333;
    }
    .scdev-filter-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    .scdev-filter-btn:hover {
        background: #333;
    }
    .scdev-filter-btn.active {
        background: #3498db;
        color: white;
    }
    .scdev-post-card {
        background: #1e1e1e;
    }
    .scdev-post-card-title a {
        color: #e0e0e0;
    }
    .scdev-post-card-date,
    .scdev-post-card-excerpt {
        color: #999;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .scdev-widget {
        padding: 15px;
    }
    
    .scdev-clock-time {
        font-size: 36px;
    }
    
    .scdev-weather-temp {
        font-size: 28px;
    }
    
    .scdev-weather-icon {
        font-size: 48px;
    }
    
    .scdev-layout-grid .scdev-posts-grid,
    .scdev-layout-grid[data-columns="2"] .scdev-posts-grid,
    .scdev-layout-grid[data-columns="3"] .scdev-posts-grid,
    .scdev-layout-grid[data-columns="4"] .scdev-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Pill Menu */
.scdev-pill-menu-container {
    width: 100%;
}

.scdev-pill-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.scdev-pill-menu .pill-menu-item {
    justify-content: flex-start;
    text-align: left;
}

.scdev-pill-menu .pill-menu-item:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Pill Menu Search Bar */
.scdev-pill-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.scdev-pill-search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    /* background: #f8f9fa; */
    color: #333;
}

.scdev-pill-search:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    /* background: #fff; */
}

.scdev-pill-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.scdev-pill-search-results.active {
    display: block;
}

.scdev-pill-search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.scdev-pill-search-result-item:last-child {
    border-bottom: none;
}

.scdev-pill-search-result-item:hover {
    background: #f8f9fa;
}

.scdev-pill-search-result-item a {
    color: #333;
    text-decoration: none;
    display: block;
}

.scdev-pill-search-result-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.scdev-pill-search-result-excerpt {
    font-size: 12px;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .scdev-pill-search {
        /* background: #2a2a2a; */
        border-color: #444;
        color: #e0e0e0;
    }
    
    .scdev-pill-search-results {
        background: #1e1e1e;
        border-color: #444;
    }
    
    .scdev-pill-search-result-item {
        border-bottom-color: #333;
    }
    
    .scdev-pill-search-result-item:hover {
        background: #2a2a2a;
    }
    
    .scdev-pill-search-result-item a {
        color: #e0e0e0;
    }
    
    .scdev-pill-search-result-excerpt {
        color: #999;
    }
}

/* Post Rotator */
.scdev-post-rotator-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
}

.scdev-rotator-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scdev-rotator-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scdev-rotator-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.scdev-rotator-image {
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.scdev-rotator-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

.scdev-rotator-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scdev-rotator-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 193, 7, 0.9);
    border-radius: 10px;
    font-size: 10px;
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (prefers-color-scheme: dark) {
    .scdev-post-rotator-vertical .scdev-rotator-item {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .scdev-post-rotator-vertical .scdev-rotator-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    
    .scdev-rotator-controls {
        border-top-color: #333;
    }
    
    .scdev-rotator-prev,
    .scdev-rotator-next {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .scdev-rotator-prev:hover,
    .scdev-rotator-next:hover {
        background: #3498db;
        color: white;
    }
    
    .scdev-rotator-dot {
        background: #444;
    }
    
    .scdev-rotator-dot:hover {
        background: #666;
    }
}
