/* Refresh button styles */
.arss-refresh-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.arss-refresh-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.arss-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.arss-refresh-button:hover {
    background: #135e96;
    color: white;
}

.arss-refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.arss-refresh-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.arss-refresh-button .dashicons.spin {
    animation: arss-spin 1s linear infinite;
}

@keyframes arss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.arss-last-refresh {
    font-size: 13px;
    color: #666;
}

/* Success/error notices */
.arss-notice {
    padding: 12px 15px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.arss-notice-success {
    background-color: #edfaef;
    border-color: #00a32a;
    color: #0e6245;
}

.arss-notice-error {
    background-color: #fcf0f1;
    border-color: #d63638;
    color: #8a2424;
}

.arss-feed-status {
    font-size: 12px;
    color: #888;
    background: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
    margin-left: 10px;
}

/* Success indicator from refresh */
body:has(.arss-notice-success) {
    animation: arss-highlight 2s ease-in-out;
}

@keyframes arss-highlight {
    0% { background-color: transparent; }
    10% { background-color: rgba(0, 163, 42, 0.1); }
    100% { background-color: transparent; }
}

/* Feed display styles */
.arss-feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arss-feed-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.arss-feed-item:last-child {
    border-bottom: none;
}

.arss-item-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.arss-item-title a {
    text-decoration: none;
    color: #2271b1;
}

.arss-item-title a:hover {
    color: #135e96;
    text-decoration: underline;
}

.arss-item-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.arss-item-meta span {
    margin-right: 15px;
}

.arss-item-description {
    color: #444;
    line-height: 1.6;
}

.arss-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.arss-grid-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    transition: transform 0.2s;
}

.arss-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.arss-grid-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.arss-grid-title a {
    text-decoration: none;
    color: #2271b1;
}

.arss-grid-title a:hover {
    color: #135e96;
    text-decoration: underline;
}

.arss-grid-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.arss-grid-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.arss-item-recent,
.arss-grid-recent {
    margin-left: 8px;
    color: #00a32a;
    font-weight: bold;
}

/* Default template styles (from template file) */
.arss-default-template {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.arss-feed-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.arss-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.arss-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.arss-item-header {
    margin-bottom: 15px;
}

.arss-item-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.4;
}

.arss-item-title a {
    color: #2c3e50;
    text-decoration: none;
}

.arss-item-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.arss-item-meta {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.arss-item-date {
    font-weight: 500;
}

.arss-item-recent {
    color: #27ae60;
    font-weight: bold;
    font-size: 12px;
}

.arss-item-author {
    font-style: italic;
}

.arss-item-source {
    background: #f1f2f6;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.arss-item-excerpt {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.arss-item-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.arss-read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.arss-read-more:hover {
    text-decoration: underline;
}

.arss-no-items {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .arss-refresh-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arss-refresh-button {
        width: 100%;
        justify-content: center;
    }
    
    .arss-feed-grid {
        grid-template-columns: 1fr;
    }
    
    .arss-feed-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .arss-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .arss-item {
        padding: 15px;
    }
    
    .arss-item-title {
        font-size: 18px;
    }
}