style.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  8. line-height: 1.6;
  9. color: #333;
  10. background-color: #f5f5f5;
  11. }
  12. .container {
  13. max-width: 1200px;
  14. margin: 0 auto;
  15. padding: 20px;
  16. }
  17. header {
  18. text-align: center;
  19. margin-bottom: 40px;
  20. padding: 30px 0;
  21. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  22. color: white;
  23. border-radius: 10px;
  24. }
  25. header h1 {
  26. font-size: 2.5rem;
  27. margin-bottom: 10px;
  28. }
  29. .subtitle {
  30. font-size: 1.1rem;
  31. opacity: 0.9;
  32. }
  33. .actions {
  34. display: flex;
  35. gap: 15px;
  36. justify-content: center;
  37. margin-bottom: 30px;
  38. }
  39. .btn {
  40. padding: 12px 24px;
  41. font-size: 1rem;
  42. border: none;
  43. border-radius: 6px;
  44. cursor: pointer;
  45. transition: all 0.3s ease;
  46. font-weight: 500;
  47. }
  48. .btn-primary {
  49. background-color: #667eea;
  50. color: white;
  51. }
  52. .btn-primary:hover {
  53. background-color: #5568d3;
  54. transform: translateY(-2px);
  55. }
  56. .btn-secondary {
  57. background-color: #764ba2;
  58. color: white;
  59. }
  60. .btn-secondary:hover {
  61. background-color: #643a8a;
  62. transform: translateY(-2px);
  63. }
  64. .message {
  65. padding: 15px 20px;
  66. border-radius: 6px;
  67. margin-bottom: 20px;
  68. text-align: center;
  69. }
  70. .message.success {
  71. background-color: #d4edda;
  72. color: #155724;
  73. border: 1px solid #c3e6cb;
  74. }
  75. .message.error {
  76. background-color: #f8d7da;
  77. color: #721c24;
  78. border: 1px solid #f5c6cb;
  79. }
  80. .message.hidden {
  81. display: none;
  82. }
  83. .section {
  84. background: white;
  85. padding: 30px;
  86. border-radius: 10px;
  87. margin-bottom: 30px;
  88. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  89. }
  90. .section h2 {
  91. font-size: 1.8rem;
  92. margin-bottom: 20px;
  93. color: #667eea;
  94. }
  95. .recommendations-grid {
  96. display: grid;
  97. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  98. gap: 20px;
  99. }
  100. .recommendation-card {
  101. background: #f9f9f9;
  102. padding: 20px;
  103. border-radius: 8px;
  104. border: 1px solid #e0e0e0;
  105. transition: transform 0.2s ease, box-shadow 0.2s ease;
  106. }
  107. .recommendation-card:hover {
  108. transform: translateY(-4px);
  109. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  110. }
  111. .recommendation-card h3 {
  112. font-size: 1.3rem;
  113. margin-bottom: 5px;
  114. color: #333;
  115. }
  116. .author {
  117. color: #666;
  118. font-style: italic;
  119. margin-bottom: 10px;
  120. }
  121. .description {
  122. margin-bottom: 15px;
  123. line-height: 1.5;
  124. }
  125. .reason {
  126. background: #fff;
  127. padding: 10px;
  128. border-left: 3px solid #667eea;
  129. margin-bottom: 10px;
  130. }
  131. .reason strong {
  132. color: #667eea;
  133. }
  134. .reason p {
  135. margin-top: 5px;
  136. font-size: 0.95rem;
  137. }
  138. .genres {
  139. display: flex;
  140. flex-wrap: wrap;
  141. gap: 8px;
  142. margin-top: 10px;
  143. }
  144. .genre-tag {
  145. background: #667eea;
  146. color: white;
  147. padding: 4px 12px;
  148. border-radius: 20px;
  149. font-size: 0.85rem;
  150. }
  151. .history-list {
  152. display: flex;
  153. flex-direction: column;
  154. gap: 15px;
  155. }
  156. .history-item {
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. padding: 15px;
  161. background: #f9f9f9;
  162. border-radius: 8px;
  163. border: 1px solid #e0e0e0;
  164. }
  165. .book-info h3 {
  166. font-size: 1.1rem;
  167. margin-bottom: 5px;
  168. }
  169. .status {
  170. padding: 6px 12px;
  171. border-radius: 20px;
  172. font-size: 0.9rem;
  173. font-weight: 500;
  174. }
  175. .status.finished {
  176. background-color: #d4edda;
  177. color: #155724;
  178. }
  179. .status.in-progress {
  180. background-color: #fff3cd;
  181. color: #856404;
  182. }
  183. .empty-state {
  184. text-align: center;
  185. color: #999;
  186. padding: 40px;
  187. font-size: 1.1rem;
  188. }
  189. @media (max-width: 768px) {
  190. header h1 {
  191. font-size: 2rem;
  192. }
  193. .actions {
  194. flex-direction: column;
  195. }
  196. .recommendations-grid {
  197. grid-template-columns: 1fr;
  198. }
  199. .history-item {
  200. flex-direction: column;
  201. align-items: flex-start;
  202. gap: 10px;
  203. }
  204. }