/**
 * Digital Content Library - Styles
 * Simplified, clean design without images
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
}

header h1 {
    margin-bottom: 5px;
    font-size: 2rem;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header .subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.user-menu span {
    opacity: 0.9;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

main {
    padding: 30px;
}

/* Search Form */
.search-form {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* Quick Links */
.quick-links {
    text-align: center;
    padding: 20px 0;
}

.quick-links h3 {
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-category {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-category:hover {
    background: #eee;
}

/* Results */
.results-header {
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.results-header p {
    color: #888;
    margin-top: 5px;
}

/* Results List - Clean, simple layout */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.result-content {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.result-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.result-action {
    flex-shrink: 0;
}

/* Download Button - Prominent */
.btn-download-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.download-icon {
    font-size: 1.2rem;
}

/* Generic Buttons */
.btn {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.2s;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn:hover {
    opacity: 0.85;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-link {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
}

.page-link:hover {
    background: #eee;
}

.page-info {
    color: #888;
}

/* Messages */
.error-message {
    background: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
}

footer {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .result-content {
        padding-right: 0;
    }
    
    .result-action {
        text-align: center;
    }
    
    .btn-download-large {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .user-menu {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
    
    header {
        padding-bottom: 20px;
    }
}
