* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2.5rem;
    color: #e4405f;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.title i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Error State */
.error {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.error p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.retry-btn {
    background: #e4405f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.retry-btn:hover {
    background: #d1303f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

/* Instagram Feed */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f0f0f0;
}

.post-content {
    padding: 1.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.post-username {
    font-weight: 600;
    color: #333;
}

.post-caption {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.stat i {
    font-size: 1.1rem;
}

.stat.likes {
    color: #e4405f;
}

.stat.comments {
    color: #555;
}

/* Copyright Notice */
.copyright-notice {
    font-size: 0.9rem;
    color: #e4405f;
    font-weight: 600;
    margin-top: 0.5rem;
}

.legal-notice {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .instagram-feed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-image {
        height: 250px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-stats {
        gap: 1rem;
    }
}
