/* public/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Main Content */
main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-card-content {
    padding: 20px;
}

.post-card h2 {
    margin-bottom: 10px;
    color: #333;
}

.post-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h2 a:hover {
    color: #667eea;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

/* Single Post Page */
.post-container {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.post-date {
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #764ba2;
}

/* Admin Panel */
.login-container, .admin-container {
    background: white;
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

button {
    background-color: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #764ba2;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Admin Posts List */
.admin-posts-list {
    margin-top: 30px;
}

.admin-post-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-post-info h3 {
    margin-bottom: 5px;
}

.admin-post-info p {
    color: #666;
    font-size: 0.9rem;
}

.admin-post-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 15px;
    font-size: 0.9rem;
}

.edit-btn {
    background-color: #ff9800;
}

.delete-btn {
    background-color: #f44336;
}

.edit-btn:hover {
    background-color: #f57c00;
}

.delete-btn:hover {
    background-color: #da190b;
}

/* Forms */
.create-post-form, .edit-post-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .admin-post-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* Video Container Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Featured Image Styles */
.featured-image {
    margin: 20px 0;
}

.featured-image img {
    max-height: 500px;
    object-fit: cover;
}

/* Post Card Image */
.post-card img {
    transition: transform 0.3s;
}

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

/* Admin form small text */
small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}
/* Share Section Styles */
.share-section {
    margin: 40px 0 30px;
    padding: 25px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.share-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-icon {
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn:active {
    transform: translateY(0);
}

/* Individual button colors */
.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.twitter:hover {
    background-color: #1a91da;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.whatsapp:hover {
    background-color: #20bd5a;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.linkedin:hover {
    background-color: #00669c;
}

.share-btn.copy {
    background-color: #6c757d;
}

.share-btn.copy:hover {
    background-color: #5a6268;
}

/* Responsive share buttons */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .share-section {
        padding: 20px 0;
    }
}