/* Munote Page Styles */

/* Hero Section */
.munote-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top left, rgba(220, 20, 60, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(178, 34, 34, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 8rem 0 4rem;
}

.munote-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.munote-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.munote-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    animation: floatShape 20s ease-in-out infinite;
}

.munote-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.munote-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation-delay: -7s;
}

.munote-shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.munote-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.munote-hero-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(220, 20, 60, 0.1);
    line-height: 1;
    margin-bottom: -2rem;
    letter-spacing: -0.05em;
}

.munote-hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(178, 34, 34, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.munote-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Add Note Section */
.munote-add-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}

.munote-add-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.munote-add-header {
    text-align: center;
    margin-bottom: 3rem;
}

.munote-add-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.munote-add-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.munote-add-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.munote-add-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border: 2px solid rgba(220, 20, 60, 0.15);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9);
}

.munote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.munote-form-group {
    position: relative;
}

.munote-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.munote-input,
.munote-textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.munote-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.munote-input:focus,
.munote-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

.munote-input::placeholder,
.munote-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.munote-char-count {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.munote-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(178, 34, 34, 0.9) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.munote-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(220, 20, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.munote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.munote-submit-message {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.munote-submit-message.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.1) 100%);
    color: #2e7d32;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.munote-submit-message.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(198, 40, 40, 0.1) 100%);
    color: #c62828;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

/* Notes Wall Section */
.munote-wall-section {
    position: relative;
    padding: 6rem 0;
    background: 
        radial-gradient(ellipse at top right, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    overflow: hidden;
    min-height: 60vh;
}

.munote-wall-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.munote-wall-header {
    text-align: center;
    margin-bottom: 4rem;
}

.munote-wall-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.munote-wall-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.munote-wall-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.munote-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    min-height: 400px;
}

.munote-note {
    position: relative;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 5px rgba(0, 0, 0, 0.05);
    transform: rotate(var(--rotation, 0deg));
    transition: all 0.3s ease;
    animation: noteAppear 0.5s ease backwards;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.munote-note:nth-child(1) { 
    --rotation: -5deg;
    animation-delay: 0.1s;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
}
.munote-note:nth-child(2) { 
    --rotation: 3deg;
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}
.munote-note:nth-child(3) { 
    --rotation: -3deg;
    animation-delay: 0.3s;
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}
.munote-note:nth-child(4) { 
    --rotation: 4deg;
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
}
.munote-note:nth-child(5) { 
    --rotation: -2deg;
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}
.munote-note:nth-child(6) { 
    --rotation: 5deg;
    animation-delay: 0.6s;
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%);
}
.munote-note:nth-child(7) { 
    --rotation: -4deg;
    animation-delay: 0.7s;
    background: linear-gradient(135deg, #c5cae9 0%, #9fa8da 100%);
}
.munote-note:nth-child(8) { 
    --rotation: 2deg;
    animation-delay: 0.8s;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
}
.munote-note:nth-child(9) { 
    --rotation: -3deg;
    animation-delay: 0.9s;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}
.munote-note:nth-child(10) { 
    --rotation: 4deg;
    animation-delay: 1s;
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

@keyframes noteAppear {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 0deg)) scale(0.5) translateY(50px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotation, 0deg)) scale(1) translateY(0);
    }
}

.munote-note:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.munote-note-content {
    flex: 1;
    margin-bottom: 1rem;
}

.munote-note-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.munote-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.munote-note-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.8;
}

.munote-note-date {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

.munote-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.munote-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(220, 20, 60, 0.1);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.munote-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.munote-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.munote-empty h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.munote-empty p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .munote-hero {
        padding: 7rem 0 3.5rem;
        min-height: 85vh;
    }
    
    .munote-hero-number {
        font-size: 6rem;
    }
    
    .munote-add-section,
    .munote-wall-section {
        padding: 5rem 0;
    }
    
    .munote-add-content,
    .munote-wall-content {
        padding: 0 2rem;
    }
    
    .munote-add-form-wrapper {
        padding: 2.5rem 2rem;
    }
    
    .munote-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .munote-note {
        min-height: 180px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .munote-hero {
        padding: 6rem 0 3rem;
        min-height: 80vh;
    }
    
    .munote-hero-number {
        font-size: 5rem;
        margin-bottom: -1.5rem;
    }
    
    .munote-hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .munote-hero-subtitle {
        font-size: 1rem;
    }

    .munote-add-section,
    .munote-wall-section {
        padding: 4rem 0;
    }
    
    .munote-add-content,
    .munote-wall-content {
        padding: 0 1.5rem;
    }

    .munote-add-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .munote-add-title,
    .munote-wall-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .munote-add-subtitle,
    .munote-wall-subtitle {
        font-size: 1rem;
    }

    .munote-wall {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .munote-note {
        transform: rotate(0deg) !important;
        min-height: 160px;
        padding: 1.5rem;
    }

    .munote-note:hover {
        transform: scale(1.02) translateY(-3px) !important;
    }
    
    .munote-note-text {
        font-size: 1rem;
    }
    
    .munote-input,
    .munote-textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .munote-submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .munote-hero {
        padding: 5rem 0 2rem;
        min-height: 70vh;
    }
    
    .munote-hero-number {
        font-size: 4rem;
        margin-bottom: -1rem;
    }
    
    .munote-hero-content {
        padding: 1.5rem;
    }
    
    .munote-add-section,
    .munote-wall-section {
        padding: 3rem 0;
    }
    
    .munote-add-content,
    .munote-wall-content {
        padding: 0 1rem;
    }
    
    .munote-add-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .munote-input,
    .munote-textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .munote-textarea {
        min-height: 100px;
    }
    
    .munote-submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .munote-note {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .munote-note-text {
        font-size: 0.95rem;
    }
    
    .munote-note-author {
        font-size: 0.85rem;
    }
    
    .munote-note-date {
        font-size: 0.75rem;
    }
    
    .munote-empty {
        padding: 3rem 1rem;
    }
    
    .munote-empty-icon {
        font-size: 3rem;
    }
    
    .munote-empty h3 {
        font-size: 1.5rem;
    }
    
    .munote-empty p {
        font-size: 1rem;
    }
}

