/* Sock Soulmate - Main Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    background: #e9ebee;
}

/* Layout - 3 Column */
.layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #f5f5f5;
    padding: 20px;
}

.sidebar-left {
}

.sidebar-right {
}

.content {
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Sidebar Sections */
.sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.match-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.match-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.match-images img {
    border-radius: 4px;
}

.match-icon {
    font-size: 1.2rem;
}

.match-text {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
}

/* Feed */
.feed {
    max-width: 600px;
    margin: 0 auto;
}

.post {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: #333;
}

.timestamp {
    font-size: 0.8rem;
    color: #888;
}

.post-content p {
    margin-bottom: 12px;
    color: #333;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.btn-action {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #f0f0f0;
}

/* Giveaway Card */
.giveaway-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.giveaway-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.giveaway-month {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.giveaway-image {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.giveaway-sock-name {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.giveaway-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.giveaway-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.btn-enter-giveaway {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-enter-giveaway:hover {
    background: #e55a5a;
}

/* Affiliate Links */
#affiliate-links {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#affiliate-links h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.affiliate-disclaimer {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 12px;
    font-style: italic;
}

.affiliate-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.affiliate-tab {
    background: #f0f0f0;
    border: none;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.affiliate-tab:hover {
    background: #e0e0e0;
}

.affiliate-tab.active {
    background: #4a90d9;
    color: white;
}

.affiliate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.affiliate-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.affiliate-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.affiliate-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.affiliate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.affiliate-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.affiliate-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d8a2d;
}

.affiliate-rating {
    font-size: 0.75rem;
    color: #666;
}

.affiliate-store {
    font-size: 0.7rem;
    color: #888;
}

/* Responsive Design */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr 2fr;
    }
    
    .sidebar-left {
        display: none;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

/* Mobile - single column */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .sidebar-left {
        display: none;
    }
    
    .sidebar-right {
        order: 3;
    }
    
    .content {
        order: 1;
        padding: 12px;
    }
    
    .header {
        padding: 20px 12px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .feed {
        max-width: 100%;
    }
    
    .post {
        padding: 12px;
    }
    
    .post-image {
        border-radius: 6px;
    }
    
    .post-actions {
        flex-wrap: wrap;
    }
    
    .sidebar {
        padding: 12px;
    }
    
    .giveaway-card,
    #affiliate-links {
        margin-bottom: 12px;
    }
    
    .affiliate-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .affiliate-tab {
        padding: 6px 4px;
        font-size: 0.7rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .post-header {
        gap: 8px;
    }
    
    .avatar {
        width: 36px;
        height: 36px;
    }
    
    .username {
        font-size: 0.9rem;
    }
    
    .btn-action {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .affiliate-tabs {
        grid-template-columns: 1fr 1fr;
    }
    
    .affiliate-tab {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .match-images img {
        width: 50px;
        height: 65px;
    }
}
