/* ==========================================================
   General Reset & Global Styles
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}

/* Container for General Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

/* ==========================================================
   Card & Category Styling
========================================================== */
.card-preview, .category {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-preview {
    width: 100%;
    max-width: 400px;
    height: 600px;
    background-size: cover;
    background-position: center;
    margin: auto;
    border: 2px solid #ccc;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category {
    width: 300px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    background: #fff;
}

.category img {
    width: 100%;
    border-radius: 10px;
}

.category a {
    text-decoration: none;
    color: #007BFF;
    font-weight: 600;
}

.category a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ==========================================================
   Forms & Buttons
========================================================== */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form input, form select, form textarea, form button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

form button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* ==========================================================
   Preview Page Styles
========================================================== */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.message-note {
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    word-wrap: break-word;
}

/* ==========================================================
   Authentication (Login/Register) Page
========================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 150px); /* Adjusts based on header & footer height */
    background-color: #f4f4f4;
}

.auth-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Form Inputs */
.auth-box input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Submit Button */
.auth-box button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.auth-box button:hover {
    background: #0056b3;
}

/* Error Messages */
.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Footer Text */
.auth-footer {
    margin-top: 10px;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Footer
========================================================== */
.main-footer {
    background: #222;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

/* Social Media Icons */
.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-media a {
    font-size: 22px;
    color: white;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #f39c12;
}

/* ==========================================================
   Responsive Design
========================================================== */
@media screen and (max-width: 768px) {
    .categories {
        flex-direction: column;
        align-items: center;
    }

    .auth-container {
        height: auto;
        padding: 50px 20px;
    }

    .main-footer {
        flex-direction: column;
        text-align: center;
    }
}
