top500albums/styles.css
Johan Lundberg 2720eb1f4b Add Next album navigation button to album cards
- Add "Next" button to album cards for sequential navigation through rankings
- Button shows "Next (#rank+1)" and uses existing jump-to-rank functionality
- Button only appears on albums 1-499 (not on album #500)
- Styled to match Wikipedia and Spotify links with theme-aware colors
- Uses right arrow SVG icon and hover effects consistent with other links
- Clicking Next button jumps to the next sequential album in the ranking

Features:
• Sequential navigation through the Top 500 albums
• Smart button hiding on the last album (#500)
• Theme-aware styling with CSS custom properties
• Consistent visual design with existing link buttons
• Smooth scroll navigation using existing jump functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 00:53:39 +02:00

993 lines
No EOL
20 KiB
CSS

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Theme Variables */
:root {
/* Default theme - Gruvbox */
--primary-color: #d79921;
--secondary-color: #b57614;
--accent-color: #d79921;
--background-gradient: linear-gradient(135deg, #282828 0%, #3c3836 100%);
--card-background: #32302f;
--text-primary: #ebdbb2;
--text-secondary: #d5c4a1;
--text-muted: #bdae93;
--text-light: #fbf1c7;
--border-color: #504945;
--shadow-color: rgba(0, 0, 0, 0.4);
--hover-background: rgba(215, 153, 33, 0.1);
--theme-name: 'Gruvbox';
}
/* Purple Theme */
[data-theme="purple"] {
--primary-color: #667eea;
--secondary-color: #764ba2;
--accent-color: #667eea;
--background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--card-background: #ffffff;
--text-primary: #333333;
--text-secondary: #666666;
--text-muted: #888888;
--text-light: #ffffff;
--border-color: #eeeeee;
--shadow-color: rgba(0, 0, 0, 0.1);
--hover-background: rgba(102, 126, 234, 0.05);
--theme-name: 'Basic Blue';
}
/* Dark Theme */
[data-theme="dark"] {
--primary-color: #bb86fc;
--secondary-color: #3700b3;
--accent-color: #bb86fc;
--background-gradient: linear-gradient(135deg, #121212 0%, #1f1f1f 100%);
--card-background: #1e1e1e;
--text-primary: #ffffff;
--text-secondary: #b3b3b3;
--text-muted: #808080;
--text-light: #ffffff;
--border-color: #333333;
--shadow-color: rgba(0, 0, 0, 0.3);
--hover-background: rgba(187, 134, 252, 0.1);
--theme-name: 'Dark';
}
/* Gruvbox Theme */
[data-theme="gruvbox"] {
--primary-color: #d79921;
--secondary-color: #b57614;
--accent-color: #d79921;
--background-gradient: linear-gradient(135deg, #282828 0%, #3c3836 100%);
--card-background: #32302f;
--text-primary: #ebdbb2;
--text-secondary: #d5c4a1;
--text-muted: #bdae93;
--text-light: #fbf1c7;
--border-color: #504945;
--shadow-color: rgba(0, 0, 0, 0.4);
--hover-background: rgba(215, 153, 33, 0.1);
--theme-name: 'Gruvbox';
}
/* Gruvbox Dark Theme */
[data-theme="gruvbox-dark"] {
--primary-color: #fabd2f;
--secondary-color: #d79921;
--accent-color: #fabd2f;
--background-gradient: linear-gradient(135deg, #1d2021 0%, #282828 100%);
--card-background: #1d2021;
--text-primary: #fbf1c7;
--text-secondary: #ebdbb2;
--text-muted: #a89984;
--text-light: #f9f5d7;
--border-color: #3c3836;
--shadow-color: rgba(0, 0, 0, 0.6);
--hover-background: rgba(250, 189, 47, 0.1);
--theme-name: 'Gruvbox Dark';
}
/* Dracula Theme */
[data-theme="dracula"] {
--primary-color: #ff79c6;
--secondary-color: #bd93f9;
--accent-color: #ff79c6;
--background-gradient: linear-gradient(135deg, #282a36 0%, #44475a 100%);
--card-background: #282a36;
--text-primary: #f8f8f2;
--text-secondary: #f8f8f2;
--text-muted: #6272a4;
--text-light: #f8f8f2;
--border-color: #44475a;
--shadow-color: rgba(0, 0, 0, 0.5);
--hover-background: rgba(255, 121, 198, 0.1);
--theme-name: 'Dracula';
}
/* Nord Theme */
[data-theme="nord"] {
--primary-color: #88c0d0;
--secondary-color: #81a1c1;
--accent-color: #88c0d0;
--background-gradient: linear-gradient(135deg, #2e3440 0%, #3b4252 100%);
--card-background: #3b4252;
--text-primary: #eceff4;
--text-secondary: #d8dee9;
--text-muted: #616e88;
--text-light: #eceff4;
--border-color: #434c5e;
--shadow-color: rgba(0, 0, 0, 0.4);
--hover-background: rgba(136, 192, 208, 0.1);
--theme-name: 'Nord';
}
/* Solarized Theme */
[data-theme="solarized"] {
--primary-color: #268bd2;
--secondary-color: #2aa198;
--accent-color: #268bd2;
--background-gradient: linear-gradient(135deg, #002b36 0%, #073642 100%);
--card-background: #073642;
--text-primary: #839496;
--text-secondary: #657b83;
--text-muted: #586e75;
--text-light: #fdf6e3;
--border-color: #094450;
--shadow-color: rgba(0, 0, 0, 0.5);
--hover-background: rgba(38, 139, 210, 0.1);
--theme-name: 'Solarized';
}
/* Arc Theme */
[data-theme="arc"] {
--primary-color: #5294e2;
--secondary-color: #4084d6;
--accent-color: #5294e2;
--background-gradient: linear-gradient(135deg, #383c4a 0%, #404552 100%);
--card-background: #404552;
--text-primary: #d3dae3;
--text-secondary: #bac5d0;
--text-muted: #8b9bad;
--text-light: #ffffff;
--border-color: #4b5162;
--shadow-color: rgba(0, 0, 0, 0.4);
--hover-background: rgba(82, 148, 226, 0.1);
--theme-name: 'Arc';
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background: var(--background-gradient);
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.header {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 2rem 0;
text-align: center;
position: relative;
}
.supertitle {
font-size: 1.5rem;
font-weight: 400;
color: var(--text-light);
opacity: 0.8;
margin: 0 0 0.5rem 0;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
letter-spacing: 0.1em;
}
.title {
font-size: 3rem;
font-weight: 700;
color: var(--text-light);
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.subtitle {
font-size: 1.2rem;
color: var(--text-light);
opacity: 0.9;
font-weight: 300;
}
.header-theme-selector {
position: absolute;
bottom: 1rem;
right: 1rem;
}
.theme-select-header {
padding: 0.5rem 0.75rem;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 6px;
background: rgba(255, 255, 255, 0.1);
color: var(--text-light);
font-size: 0.85rem;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
cursor: pointer;
min-width: 100px;
}
.theme-select-header:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.2);
}
.theme-select-header option {
background: var(--card-background);
color: var(--text-primary);
}
/* Main content */
.main {
padding: 2rem 0;
flex: 1;
}
/* Controls */
.controls {
background: var(--card-background);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
}
.search-container {
display: flex;
flex: 1;
min-width: 300px;
}
.search-input {
flex: 1;
padding: 0.75rem 1rem;
border: 2px solid #e1e5e9;
border-radius: 8px 0 0 8px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
}
.search-input:focus {
border-color: #667eea;
}
.search-button {
padding: 0.75rem 1rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: 0 8px 8px 0;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.search-button svg {
color: white;
}
.search-button:hover {
background: var(--secondary-color);
}
.filters {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.filter-select {
padding: 0.75rem 1rem;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
cursor: pointer;
background: var(--card-background);
color: var(--text-primary);
min-width: 100px;
}
.filter-select:focus {
border-color: var(--primary-color);
}
.filter-select option {
background: var(--card-background);
color: var(--text-primary);
}
.reverse-button {
padding: 0.75rem 1rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s ease;
outline: none;
}
.reverse-button:hover {
background: var(--secondary-color);
transform: translateY(-1px);
}
.reverse-button:active {
transform: translateY(0);
}
.reverse-button.reversed {
background: var(--secondary-color);
}
.reverse-button.reversed:hover {
background: var(--secondary-color);
}
#reverseIcon {
font-size: 1.2rem;
transition: transform 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
#reverseIcon svg {
color: inherit;
}
.reverse-button.reversed #reverseIcon {
transform: rotate(180deg);
}
/* Bookmark controls */
.bookmark-controls {
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
}
.jump-to-rank {
display: flex;
gap: 0.5rem;
align-items: center;
}
.rank-input {
width: 140px;
padding: 0.75rem 1rem;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
}
.rank-input:focus {
border-color: var(--primary-color);
}
.theme-selector {
margin-left: 1rem;
}
.theme-select {
padding: 0.75rem 1rem;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease;
cursor: pointer;
background: var(--card-background);
color: var(--text-primary);
min-width: 100px;
}
.theme-select:focus {
border-color: var(--primary-color);
}
.theme-select option {
background: var(--card-background);
color: var(--text-primary);
}
.jump-button {
padding: 0.75rem 1.25rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
outline: none;
}
.jump-button:hover {
background: var(--secondary-color);
transform: translateY(-1px);
}
.jump-button:active {
transform: translateY(0);
}
/* Stats */
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.stat-item {
background: var(--card-background);
padding: 1.5rem;
border-radius: 12px;
text-align: center;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
cursor: pointer;
}
.stat-item:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px var(--shadow-color);
background: var(--hover-background);
}
.stat-number {
display: block;
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 0.9rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Albums grid */
.albums-grid {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2rem;
}
.album-card {
background: var(--card-background);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 1rem;
position: relative;
}
.album-cover {
width: 600px;
height: 600px;
max-width: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 8px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
font-weight: 300;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
position: relative;
overflow: hidden;
margin: 0 auto;
align-self: center;
}
.album-cover:has(.album-cover-image) {
background: none;
}
.album-cover:has(.album-cover-image)::before {
display: none;
}
.album-cover::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 2px,
rgba(255,255,255,0.1) 2px,
rgba(255,255,255,0.1) 4px
);
pointer-events: none;
}
.album-cover-icon {
font-size: 6rem;
opacity: 0.8;
z-index: 1;
position: relative;
}
.album-cover-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
}
.album-share {
position: absolute;
top: 1rem;
right: 1rem;
background: var(--primary-color);
color: var(--text-light);
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s ease;
opacity: 0;
transform: scale(0.8);
backdrop-filter: blur(10px);
box-shadow: 0 2px 8px var(--shadow-color);
}
.album-share svg {
color: var(--text-light);
}
.album-card:hover .album-share {
opacity: 1;
transform: scale(1);
}
.album-share:hover {
background: var(--secondary-color);
transform: scale(1.1);
}
.album-share:active {
transform: scale(0.95);
}
.album-share.copied {
background: var(--secondary-color);
opacity: 1;
}
.album-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.album-header-grid {
display: grid;
grid-template-columns: 100px 1fr;
gap: 1.5rem;
align-items: center;
}
.album-rank {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.album-details {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.album-title {
font-size: 1.3rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.3;
margin: 0;
}
.album-artist {
font-size: 1.1rem;
color: var(--text-secondary);
margin: 0;
}
.album-info {
font-size: 0.9rem;
color: var(--text-muted);
margin: 0;
}
.album-status {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 500;
align-self: flex-start;
}
.status-new {
background: var(--hover-background);
color: var(--primary-color);
border: 1px solid var(--primary-color);
opacity: 0.8;
}
.status-improved {
background: var(--hover-background);
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
.status-dropped {
background: var(--hover-background);
color: var(--text-muted);
border: 1px solid var(--text-muted);
opacity: 0.7;
}
.status-no-change {
background: var(--hover-background);
color: var(--text-secondary);
border: 1px solid var(--border-color);
}
.album-description {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.7;
margin-top: 1rem;
text-align: justify;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.album-description p {
margin: 0 0 1rem 0;
text-indent: 1.5em;
}
.album-description p:first-child {
text-indent: 0;
}
.album-description p:last-child {
margin-bottom: 0;
}
.album-links {
margin-top: 1.5rem;
text-align: center;
padding-top: 1rem;
border-top: 1px solid #eee;
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.wikipedia-link {
display: inline-block;
color: var(--primary-color);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 20px;
background: rgba(102, 126, 234, 0.1);
transition: all 0.3s ease;
}
.wikipedia-link:hover {
background: var(--hover-background);
opacity: 0.8;
transform: translateY(-1px);
}
.wikipedia-link:active {
transform: translateY(0);
}
.spotify-link {
display: inline-block;
color: #1db954; /* Spotify green */
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 20px;
background: rgba(29, 185, 84, 0.1);
transition: all 0.3s ease;
}
.spotify-link:hover {
background: rgba(29, 185, 84, 0.2);
opacity: 0.8;
transform: translateY(-1px);
}
.spotify-link:active {
transform: translateY(0);
}
/* Dark theme adjustments for Spotify link */
[data-theme="dark"] .spotify-link,
[data-theme="gruvbox"] .spotify-link,
[data-theme="gruvbox-dark"] .spotify-link,
[data-theme="dracula"] .spotify-link,
[data-theme="nord"] .spotify-link,
[data-theme="solarized"] .spotify-link {
color: #1ed760; /* Slightly brighter Spotify green for dark themes */
}
.next-album-link {
display: inline-block;
color: var(--primary-color);
background: none;
border: none;
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 20px;
background: var(--hover-background);
border: 1px solid var(--primary-color);
transition: all 0.3s ease;
cursor: pointer;
font-family: inherit;
}
.next-album-link:hover {
background: var(--primary-color);
color: var(--text-light);
transform: translateY(-1px);
}
.next-album-link:active {
transform: translateY(0);
}
.next-album-link svg {
color: inherit;
}
/* Loading and error states */
.loading {
text-align: center;
padding: 3rem 0;
color: white;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 3px solid rgba(255,255,255,0.3);
border-top: 3px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error {
text-align: center;
padding: 3rem 0;
color: #ff6b6b;
background: var(--card-background);
border-radius: 12px;
margin: 2rem 0;
}
/* Footer */
.footer {
background: rgba(0,0,0,0.1);
color: rgba(255,255,255,0.8);
text-align: center;
padding: 1.5rem 0;
margin-top: 3rem;
}
/* Responsive design */
@media (max-width: 768px) {
.supertitle {
font-size: 1.2rem;
}
.title {
font-size: 2rem;
}
.subtitle {
font-size: 1rem;
}
.header-theme-selector {
bottom: 0.5rem;
right: 0.5rem;
}
.theme-select-header {
font-size: 0.8rem;
padding: 0.4rem 0.6rem;
min-width: 80px;
}
.controls {
flex-direction: column;
align-items: stretch;
}
.search-container {
min-width: auto;
}
.filters {
justify-content: center;
}
.reverse-button {
min-width: auto;
padding: 0.75rem;
}
#reverseText {
display: none;
}
.bookmark-controls {
width: 100%;
justify-content: center;
flex-wrap: wrap;
gap: 1rem;
}
.rank-input {
width: 120px;
}
.theme-selector {
margin-left: 0;
}
.album-card {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.album-rank {
min-width: auto;
text-align: left;
}
.album-cover {
width: 280px;
height: 280px;
align-self: center;
}
.album-cover-icon {
font-size: 5rem;
}
.album-share {
opacity: 1;
transform: scale(1);
}
.stats {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.container {
padding: 0 10px;
}
.controls {
padding: 1rem;
}
.album-card {
padding: 1rem;
}
.stats {
grid-template-columns: 1fr;
}
.album-cover {
width: 240px;
height: 240px;
}
.album-cover-icon {
font-size: 4.5rem;
}
.album-share {
opacity: 1;
transform: scale(1);
}
.album-links {
flex-direction: column;
gap: 0.5rem;
}
}