/* 
* Sprytne Porady - Main Stylesheet
* A comprehensive CSS file for styling the Polish lifehacks portal
*/

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #4CAF50;
    --primary-light: rgba(76, 175, 80, 0.1);
    --primary-dark: #2E7D32;
    --secondary-color: #FFC107;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #757575;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Category Colors */
    --kitchen-color: #FFEB3B;
    --home-color: #E91E63;
    --computer-color: #2196F3;
    --everyday-color: #4CAF50;
}

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

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img, svg {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-type: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.bg-alt {
    background-color: var(--light-gray);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-small {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: calc(var(--border-radius) - 2px);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    max-height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    min-width: 160px;
    z-index: 1;
    padding: 1rem 0;
}

.dropdown-content li a {
    display: block;
    padding: 0.8rem 1.6rem;
    white-space: nowrap;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 6rem 0;
    background-color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: 6rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.category-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== TIPS SECTION ===== */
.tips-section {
    padding: 6rem 0;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.tip-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.tip-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.tip-card p {
    color: var(--text-light);
}

.more-tips {
    text-align: center;
    margin-top: 3rem;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img svg {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--dark-gray);
}

.blog-meta span {
    margin-right: 1.5rem;
}

.blog-meta .category {
    font-weight: 600;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 6rem 0;
    background-color: var(--primary-light);
}

.newsletter-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    margin-bottom: 2rem;
}

.newsletter-content p {
    margin-bottom: 3rem;
    color: var(--text-light);
}

.newsletter-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.form-group {
    margin-bottom: 2rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
}

.checkbox label {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 6rem 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.team-info {
    margin-top: 3rem;
}

.team-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.contact-text p {
    color: var(--text-light);
}

.social-media {
    margin-top: 2rem;
}

.social-media h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-form h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--light-gray);
    padding: 6rem 0 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-column p {
    color: var(--text-light);
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid var(--gray);
}

.footer-bottom p {
    color: var(--text-light);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* ===== COOKIE BANNER & MODAL ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 2rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#accept-all {
    background-color: var(--primary-color);
    color: var(--white);
}

#accept-all:hover {
    background-color: var(--primary-dark);
}

#accept-necessary {
    background-color: var(--light-gray);
    color: var(--text-color);
}

#accept-necessary:hover {
    background-color: var(--gray);
}

#cookie-settings {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: underline;
}

#cookie-settings:hover {
    color: var(--primary-dark);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    max-width: 600px;
    border-radius: var(--border-radius);
    position: relative;
}

.close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.cookie-options {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 1rem;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

#save-preferences {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#save-preferences:hover {
    background-color: var(--primary-dark);
}
