/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Auth box styles */
.auth-box, .signup-box {
    background: rgb(235, 190, 211);
    border-radius: 20px;
    box-shadow: 0 10px 20px 2px rgba(158, 30, 85, 0.82);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h1 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: #666;
    font-size: 0.95rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #f7729c;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8d6e9;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #420619;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
}

button {
    width: 100%;
    padding: 1rem;
    background: #a83766;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background: #ea4177;
}

button.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

button.secondary:hover {
    background: #cbd5e0;
}

/* Stories page styles */
.stories-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.stories-header {
    margin-top: 185px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stories-filter {
    display: flex;
    gap: 1rem;
}

.stories-filter button {
    width: auto;
    padding: 0.5rem 1rem;
    background: #e2afc5;
    color: rgb(53, 5, 25);
    border-radius: 20px;
}

.stories-filter button.active {
    background: #9c1950;
    color: white;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: #c07b99;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.story-card:hover {
    transform: translateY(-4px);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
}

.story-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.story-content p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* Authors page styles */
.authors-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.authors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.authors-search input {
    width: 300px;
    padding: 0.75rem 1rem;
    border-radius: 20px;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}

.author-card {
    margin-top: 10px;
    background: rgb(247, 209, 227);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.author-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-card p {
    color: #666;
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.follow-button {
    background: #a83766;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-button.following {
    background: #4a5568;
}

/* Create blog styles */
.create-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.create-header {
    margin-bottom: 2rem;
}

.create-form {
    background: #ecbfd2;
    padding: 2rem;
    border-color: #420619;
    border-radius: 20px;
    box-shadow: 0 10px 20px 2px rgba(158, 30, 85, 0.82);
}

.cover-upload {
    border: 2px dashed #f7729c;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cover-upload:hover {
    border-color: #420619;
}

.cover-preview {
    margin-top: 1rem;
}

.cover-upload input[type="file"] {
    display: none;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .stories-header, .authors-header {
        flex-direction: column;
        gap: 1rem;
    }
    .stories-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    .authors-search input {
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    .auth-box {
        padding: 2rem;
    }
    .logo {
        font-size: 2.5rem;
    }
    h1 {
        font-size: 1.75rem;
    }
}