/* START Latest Comic Widget Styles - Light and Dark Theme */

html.dark-mode .latest-comic-widget-container {
    background: transparent;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 0px;
    box-shadow: none;
}

html.light-mode .latest-comic-widget-container {
    background: transparent;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 0px;
    box-shadow: none;
}

html.dark-mode .latest-comic-widget-container h3.widget-title {
    margin: 0 0 20px 0;
    padding: 0;
    color: #d1d1d1;
    font-size: 1.2em;
    font-weight: 600;
}

html.light-mode .latest-comic-widget-container h3.widget-title {
    margin: 0 0 20px 0;
    padding: 0;
    color: #333333;
    font-size: 1.2em;
    font-weight: 600;
}

html.dark-mode .latest-comics-list,
html.light-mode .latest-comics-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

html.dark-mode .latest-comic {
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    background: #1e1e1e;
    border: 1px solid #141414;
    box-shadow: 0 0 6px #3a3a3a;
    position: relative;
    transform: none !important;
}

html.light-mode .latest-comic {
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 6px #d0d0d0;
    position: relative;
    transform: none !important;
}

html.dark-mode .latest-comic:hover {
    transform: none !important;
    box-shadow: 0 0 8px #3a3a3a;
    border-color: #2a2a2a;
}

html.light-mode .latest-comic:hover {
    transform: none !important;
    box-shadow: 0 0 8px #c0c0c0;
    border-color: #d0d0d0;
}

html.dark-mode .latest-comic img,
html.light-mode .latest-comic img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

html.dark-mode .latest-comic h4 {
    font-size: 0.9em;
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 10px;
    color: #d1d1d1;
}

html.light-mode .latest-comic h4 {
    font-size: 0.9em;
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 10px;
    color: #333333;
}

html.dark-mode .latest-comic a {
    text-decoration: none;
    color: #d2d782;
    display: block;
    transform: none !important;
    transition: color 0.3s ease;
}

html.light-mode .latest-comic a {
    text-decoration: none;
    color: #2e7d32;
    display: block;
    transform: none !important;
    transition: color 0.3s ease;
}

html.dark-mode .latest-comic a:hover {
    color: #e5f095;
    transform: none !important;
}

html.light-mode .latest-comic a:hover {
    color: #1b5e20;
    transform: none !important;
}

html.dark-mode .comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px 10px;
    font-size: 0.8em;
    color: #abc3ab;
}

html.light-mode .comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px 10px;
    font-size: 0.8em;
    color: #666666;
}

html.dark-mode .comic-comments {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #abc3ab;
}

html.light-mode .comic-comments {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #666666;
}

html.dark-mode .comic-comments i,
html.light-mode .comic-comments i {
    font-size: 12px;
}

html.dark-mode .comic-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #abc3ab;
}

html.light-mode .comic-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #666666;
}

html.dark-mode .comic-likes i {
    color: #d2d782;
    font-size: 12px;
}

html.light-mode .comic-likes i {
    color: #2e7d32;
    font-size: 12px;
}

@media (max-width: 768px) {
    html.dark-mode .latest-comics-list,
    html.light-mode .latest-comics-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* END Latest Comic Widget Styles - Light and Dark Theme */
