/* assets/css/style.css */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e17 0%, #050811 100%);
    color: #e0f7ff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Przyciski */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, #00ffea, #0080ff);
    color: #050811;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00ffea;
    border: 2px solid #00ffea;
}

.btn-secondary:hover {
    background: rgba(0, 255, 234, 0.1);
    transform: translateY(-2px);
}

/* Ebook cards */
.ebook-card {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 23, 0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 234, 0.1);
    position: relative;
}

.ebook-card:hover {
    transform: translateY(-10px);
    border-color: #00ffea;
    box-shadow: 0 15px 30px rgba(0, 255, 234, 0.2);
}

.ebook-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, #ff00ff, #ff0066);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.ebook-image {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, #0080ff, #ff00ff);
    position: relative;
    overflow: hidden;
}

.ebook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ebook-card:hover .ebook-image img {
    transform: scale(1.1);
}

.ebook-content {
    padding: 1.5rem;
}

.ebook-category {
    color: #00ffea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.ebook-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e0f7ff;
}

.ebook-description {
    color: rgba(224, 247, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ebook-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffea;
}

.price-original {
    color: rgba(224, 247, 255, 0.5);
    text-decoration: line-through;
    font-size: 1rem;
}

.btn-add-to-cart {
    background: linear-gradient(90deg, #00ffea, #0080ff);
    color: #050811;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.3);
}

/* Blog cards */
.blog-card {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 23, 0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 128, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #0080ff;
    box-shadow: 0 10px 25px rgba(0, 128, 255, 0.2);
}

.blog-image {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, #0080ff, #00ffea);
    position: relative;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(224, 247, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-tag {
    background: rgba(0, 128, 255, 0.2);
    color: #0080ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e0f7ff;
}

.blog-excerpt {
    color: rgba(224, 247, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-read-more {
    color: #00ffea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    gap: 1rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.1), rgba(255, 0, 255, 0.05));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 234, 0.1) 0%, transparent 70%);
    animation: pulse 10s infinite linear;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ffea;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(0, 255, 234, 0.3);
    background: rgba(10, 14, 23, 0.8);
    color: #e0f7ff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #00ffea;
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Grid layouts */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #00ffea;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00ffea, #ff00ff);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0f7ff;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 234, 0.3);
    border-radius: 8px;
    color: #e0f7ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #00ffea;
    box-shadow: 0 0 0 3px rgba(0, 255, 234, 0.1);
}

/* Alert messages */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00ff9d;
}

.alert-error {
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    color: #ff0066;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: #ffaa00;
}

/* Status badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.status-processing {
    background: rgba(0, 128, 255, 0.2);
    color: #0080ff;
}

.status-completed {
    background: rgba(0, 255, 157, 0.2);
    color: #00ff9d;
}

.status-cancelled {
    background: rgba(255, 0, 102, 0.2);
    color: #ff0066;
}