Podcast-server/assets/css/style.css

307 lines
5.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
:root {
--primary-color: #6366f1;
--primary-hover: #4f46e5;
--bg-dark: #0f172a;
--bg-card: rgba(30, 41, 59, 0.7);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--glass-border: rgba(255, 255, 255, 0.1);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
}
body {
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.6;
overflow-x: hidden;
}
/* Background Gradients */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
radial-gradient(circle at 100% 100%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
z-index: -1;
}
/* Typography */
h1, h2, h3 {
font-weight: 700;
letter-spacing: -0.02em;
}
/* Navigation */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 5%;
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(12px);
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid var(--glass-border);
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
text-decoration: none;
}
.nav-links a {
color: var(--text-main);
text-decoration: none;
margin-left: 2rem;
font-weight: 500;
transition: var(--transition);
}
.nav-links a:hover {
color: var(--primary-color);
}
.notify-btn {
background: rgba(99, 102, 241, 0.1);
color: var(--primary-color);
border: 1px solid var(--primary-color);
padding: 0.5rem 1rem;
border-radius: 8px;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
margin-left: 1.5rem;
}
.notify-btn:hover {
background: var(--primary-color);
color: white;
}
.notify-btn.active {
background: #10b981;
border-color: #10b981;
color: white;
}
.btn {
padding: 0.75rem 1.5rem;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
text-decoration: none;
display: inline-block;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}
/* Hero / Banner */
.hero {
height: 400px;
background-size: cover;
background-position: center 20%; /* Adjusted to show more of the top/center */
display: flex;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
border-radius: 0 0 40px 40px;
margin-bottom: 3rem;
background-repeat: no-repeat;
}
.hero::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-dark));
}
.hero-content {
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
}
/* Episode List */
.container {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px 50px;
}
.episode-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 2rem;
margin-bottom: 2rem;
transition: var(--transition);
}
.episode-card:hover {
border-color: var(--primary-color);
transform: scale(1.01);
}
.episode-meta {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.episode-title {
font-size: 1.75rem;
margin-bottom: 1rem;
color: var(--text-main);
}
.episode-description {
color: var(--text-muted);
margin-bottom: 1.5rem;
}
/* Audio Player Customization */
audio {
width: 100%;
height: 40px;
border-radius: 10px;
}
.episode-actions {
display: flex;
align-items: center;
gap: 1.5rem;
margin-top: 1.5rem;
}
.download-link {
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.download-link:hover {
color: var(--primary-color);
}
/* Forms (Admin) */
.form-container {
max-width: 600px;
margin: 50px auto;
background: var(--bg-card);
padding: 3rem;
border-radius: 24px;
border: 1px solid var(--glass-border);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
input, textarea, select {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(15, 23, 42, 0.5);
border: 1px solid var(--glass-border);
border-radius: 10px;
color: white;
outline: none;
transition: var(--transition);
}
input:focus, textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
/* Responsive */
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5rem;
}
.nav-links {
display: none;
}
}
/* Share Buttons */
.share-group {
display: flex;
gap: 0.75rem;
align-items: center;
}
.share-btn {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
color: var(--text-muted);
cursor: pointer;
transition: var(--transition);
text-decoration: none;
}
.share-btn:hover {
background: var(--primary-color);
color: white;
transform: translateY(-2px);
border-color: var(--primary-color);
}
.share-btn.copy-success {
background: #10b981;
color: white;
border-color: #10b981;
}