.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

/* Add some basic styling to the page */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

input[type="file"] {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
}

/* Add navigation styles */
nav {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

nav a {
    margin-right: 15px;
    padding: 5px 10px;
}

nav a.active {
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

/* Add these to your existing CSS */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.deal-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.deal-card .deal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.deal-card .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.deal-card:hover .deal-image img {
    transform: scale(1.05);
}

.deal-card .deal-content {
    padding: 15px;
}

.deal-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.deal-card h2 a {
    color: #333;
    text-decoration: none;
}

.deal-card h2 a:hover {
    color: #007bff;
}

.deal-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.deal-meta a {
    color: #666;
    text-decoration: none;
}

.deal-meta a:hover {
    color: #007bff;
    text-decoration: underline;
}

.deal-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.deal-card .vote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.deal-card .vote-hot,
.deal-card .vote-cold {
    flex: 1;
    padding: 8px;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.pagination a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.submit-deal {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
}

.submit-deal:hover {
    background: #218838;
    text-decoration: none;
}

.no-deals {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

/* Deal detail page styles */
.deal-detail {
    margin-top: 20px;
}

.deal-card.full {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.deal-card.full .deal-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.deal-card.full .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-card.full .deal-content {
    padding: 20px;
}

.deal-card.full h1 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #333;
}

.deal-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
}

.deal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.deal-link {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.deal-link:hover {
    background: #218838;
    text-decoration: none;
}

.vote-buttons {
    display: flex;
    gap: 10px;
}

.vote-hot, .vote-cold {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-hot:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.vote-cold:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.vote-hot.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.vote-cold.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Comments section styles */
.comments-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.comments-section h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.login-to-comment, .login-to-vote {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.comment-text {
    line-height: 1.5;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px;
    }
} 

/* Profile page styles */
.profile-page {
    margin-top: 20px;
}

.profile-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    margin: 0 0 15px 0;
    color: #333;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.profile-meta {
    color: #666;
    font-size: 14px;
}

.profile-actions {
    margin-top: 15px;
}

.edit-profile {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
}

.edit-profile:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Profile edit page styles */
.profile-edit {
    max-width: 600px;
    margin: 20px auto;
}

.profile-edit h1 {
    margin-bottom: 30px;
}

.form-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #333;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.button.secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.button.secondary:hover {
    background: #5a6268;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        text-align: center;
    }
} 

/* Moderation page styles */
.moderation-page {
    margin-top: 20px;
}

.mod-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mod-filters a {
    padding: 8px 16px;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.mod-filters a:hover {
    background: #f4f4f4;
    text-decoration: none;
}

.mod-filters a.active {
    background: #007bff;
    color: white;
}

.mod-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.mod-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s;
}

.mod-item:last-child {
    border-bottom: none;
}

.mod-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.mod-item h3 a {
    color: #333;
    text-decoration: none;
}

.mod-item h3 a:hover {
    color: #007bff;
}

.item-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.mod-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mod-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.mod-actions .approve {
    background: #28a745;
    color: white;
}

.mod-actions .approve:hover {
    background: #218838;
}

.mod-actions .remove {
    background: #dc3545;
    color: white;
}

.mod-actions .remove:hover {
    background: #c82333;
}

.mod-actions .ban-user {
    background: #6c757d;
    color: white;
}

.mod-actions .ban-user:hover {
    background: #5a6268;
}

.mod-actions .unban-user {
    background: #17a2b8;
    color: white;
}

.mod-actions .unban-user:hover {
    background: #138496;
}

.mod-actions .dismiss {
    background: #ffc107;
    color: #000;
}

.mod-actions .dismiss:hover {
    background: #e0a800;
}

.comment-content {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    white-space: pre-line;
}

.report-content {
    font-weight: bold;
    margin-bottom: 5px;
}

.report-reason {
    color: #dc3545;
    margin-bottom: 10px;
}

.log-content {
    margin-bottom: 5px;
}

.log-details {
    color: #666;
    font-size: 0.9em;
}

.no-content {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mod-filters {
        flex-wrap: wrap;
    }
    
    .mod-filters a {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
    
    .mod-actions {
        flex-wrap: wrap;
    }
    
    .mod-actions button {
        flex: 1 1 calc(50% - 5px);
    }
} 

/* Vote button styles */
.vote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.vote-hot,
.vote-cold {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vote-hot:hover {
    background: #fff3f3;
    border-color: #ff4444;
    color: #ff4444;
}

.vote-cold:hover {
    background: #f3f9ff;
    border-color: #4444ff;
    color: #4444ff;
}

.vote-hot.active {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

.vote-cold.active {
    background: #4444ff;
    border-color: #4444ff;
    color: white;
}

/* Disable voting for logged-out users */
.not-logged-in .vote-hot,
.not-logged-in .vote-cold {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Vote count display */
.vote-count {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

/* Search page styles */
.search-page {
    margin-top: 20px;
}

.search-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex-grow: 1;
}

.search-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.search-form button:hover {
    background: #0056b3;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100px;
}

.price-inputs span {
    color: #666;
}

.results-count {
    margin-bottom: 20px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .price-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .price-inputs input {
        width: 100%;
    }
} 

/* Notification styles */
.notifications-page {
    margin-top: 20px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mark-all-read {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.mark-all-read:hover {
    background: #0056b3;
    text-decoration: none;
}

.notification-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

.notifications-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-item.unread:hover {
    background-color: #e3f0ff;
}

.notification-icon {
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-content p {
    margin: 0 0 5px 0;
    color: #333;
}

.notification-time {
    font-size: 0.85em;
    color: #666;
}

.mark-read {
    background: #28a745;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .mark-read {
    opacity: 1;
}

.mark-read:hover {
    background: #218838;
}

.no-notifications {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .notification-item {
        padding: 10px;
    }
    
    .mark-read {
        opacity: 1;
    }
} 

.follow-deal,
.unfollow-deal {
    padding: 8px 16px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: #fff;
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.follow-deal:hover {
    background-color: #007bff;
    color: #fff;
}

.unfollow-deal {
    border-color: #6c757d;
    color: #6c757d;
}

.unfollow-deal:hover {
    background-color: #6c757d;
    color: #fff;
}

.login-to-vote {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.login-to-vote a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.login-to-vote a:hover {
    text-decoration: underline;
} 

/* Category navigation styles */
.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.category-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.category-nav a:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.category-nav a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.category-icon {
    font-size: 1.2em;
}

/* Category page styles */
.category-page {
    margin-top: 20px;
}

.category-header {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.category-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    color: #333;
}

.category-header .category-icon {
    font-size: 1.5em;
}

.category-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.category-stats {
    color: #666;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-nav {
        padding: 10px;
        margin: 0 -10px 20px;
    }
    
    .category-nav a {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-header h1 {
        font-size: 1.5em;
    }
} 

/* Price history styles */
.price-history {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-history h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.price-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-stats .stat {
    text-align: center;
    flex: 1;
    padding: 10px;
}

.price-stats .label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.price-stats .value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.price-chart {
    height: 300px;
    margin-top: 20px;
}

.price-change {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

.price-change.decrease {
    background-color: #d4edda;
    color: #155724;
}

.price-change.increase {
    background-color: #f8d7da;
    color: #721c24;
}

/* Price alert styles */
.price-alert-section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.set-alert {
    display: flex;
    gap: 10px;
}

.set-alert input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.create-alert,
.cancel-alert {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.create-alert {
    background-color: #28a745;
    color: white;
}

.create-alert:hover {
    background-color: #218838;
}

.cancel-alert {
    background-color: #dc3545;
    color: white;
    width: 100%;
}

.cancel-alert:hover {
    background-color: #c82333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .price-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-stats .stat {
        padding: 5px;
    }
    
    .set-alert {
        flex-direction: column;
    }
    
    .price-chart {
        height: 200px;
    }
} 