@font-face {
    font-family: 'SpecialGothicExpanded';
    src: url('SpecialGothicExpandedOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;
    color: #262626;
    line-height: 1.6;
}

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

.header {
    font-family: 'SpecialGothicExpanded', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* text-align: left; */
    margin-top: 15px;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #262626;
    margin: 0;
    cursor: pointer;
}

.header h1 a {
    color: #262626;
    text-decoration: initial;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.header-icon:hover {
    opacity: 1;
}

.user-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 14px;
    color: #262626;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0095f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"], input[type="file"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: #0095f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}

button:hover {
    background-color: #0086e6;
}

button:disabled {
    background-color: #b2dffc;
    cursor: not-allowed;
}

.upload-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.other-users-section {
    /* background: white; */
    background: rgba(0,0,0,0);
    padding: 25px 30px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    margin-bottom: 30px;
}

.other-users-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.other-users-info-group {
    display: flex;
    padding: 15px;
    background: floralwhite;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    border-left: 4px solid orange;
    border-right: 4px solid orange;
}

.other-users-info {
    width: 100%;
    color: #495057;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.other-users-info strong {
    color: #0095f6;
    font-weight: 600;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.photo-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-header .username {
    font-weight: 600;
    font-size: 14px;
}

.photo-header .timestamp {
    color: #8e8e8e;
    font-size: 12px;
}

.photo-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: scale-down;
}

.photo-title {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    background-color: #fafafa;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.photo-title .title {
    font-weight: 600;
    color: #262626;
    max-width: 80%;
    text-align: center;
    line-height: 1.3;
}

.photo-actions {
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.like-btn, .comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    padding: 5px 10px;
}

.like-btn:hover, .comment-btn:hover {
    color: #fafafa;
}

.like-btn.liked {
    color: #ed4956;
}

.comments-section {
    padding: 0 15px 15px;
}

.comment {
    margin-bottom: 8px;
    font-size: 14px;
}

.comment .username {
    font-weight: 600;
    margin-right: 8px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form button {
    padding: 8px 16px;
    width: auto;
}

.hidden {
    display: none;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.message.error {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.message.success {
    background-color: #efe;
    color: #060;
    border: 1px solid #cfc;
}

.photo-preview {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.photo-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.photo-preview .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.photo-preview .remove-btn:hover {
    background: rgba(0,0,0,0.8);
}

.hidden {
    display: none !important;
}

/* Rules Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 66vw;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    text-align: center;
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #333;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modal-body li {
    padding: 12px 0;
    font-size: 1rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-footer-text {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 25px !important;
    margin-bottom: 0 !important;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modal-button:active {
    transform: translateY(0);
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .user-widget span {
        font-size: 12px;
    }

    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.95rem;
    }

    .modal-footer {
        padding: 15px 20px 25px;
    }

    .modal-button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .user-widget span {
        font-size: 10px;
    }

    .photo-title {
        padding: 10px 5px;
    }

    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        border-radius: 15px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-body li {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}
